Record Types

Record Type
πŸ‘¨β€πŸ’Ό We need a lookup table by ID and a count for each role. A Record type gives us a clean way to describe those object shapes.
🐨 Open
index.ts
and:
  1. Create a UsersById type using Record
  2. Create a RoleCounts type using Record
  3. Create objects that match those types

Please set the playground first

Loading "Record Types"
Loading "Record Types"
Login to get access to the exclusive discord channel.
Loading Discord Posts