#Keyof

1 posts

TypeScript Advanced #1: keyof and typeof
3 min read

TypeScript Advanced #1: keyof and typeof

The two most fundamental tools for building types — using keyof to gather keys, typeof to derive types from values, and the patterns that become possible when they meet.