Advanced Typescript
This extra is a single practice file that touches every concept in this workshop. Work through the sections in order and use TypeScript to guide you as you go.
🐨 Open
index.ts
and follow the instructions in each section.
🐨 Use
index.data.ts
for the module-import exercises.
Handy fixtures from index.data.ts:
  • sampleUsers includes user-1 (and others); unknown ids should produce an error ApiResult
  • samplePosts is an array of posts, each with an authorId
  • userRoles lists the role strings used by the data (preserve literal types where the file asks you to)
There are no tests or solutions in this section. This is focused practice.

Please set the playground first

Loading "Advanced TypeScript Practice"
Login to get access to the exclusive discord channel.
Loading Discord Posts