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
and follow the instructions in each
section.
π¨ Use
for the module-import exercises.
Handy fixtures from
index.data.ts:sampleUsersincludesuser-1(and others); unknown ids should produce an errorApiResultsamplePostsis an array of posts, each with anauthorIduserRoleslists 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.


