DEV Community

Discussion on: I need to learn about TypeScript Template Literal Types

Collapse
 
phillyx profile image
Phillyx

Update for derivation of array types
type SubArrayPath

= P extends PropertyKey ? ${number} : ${number} | ${number}.${PathTemp<P>}