Course contentsShow
TypeScript
Lesson 482 of 1,79611. Literal TypesPro lesson

Extracting Union Members as Values

Use const arrays with 'as const' and 'typeof' to derive both runtime values and union types from one source.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.