Course contentsShow
TypeScript
Lesson 792 of 1,79618. Conditional TypesPro lesson

Basic infer Pattern: Extracting Array Element Types

Using infer to extract the element type from an array type, like T extends Array<infer U> ? U : never.

This lesson is for subscribers

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