UNPKG

react-layered

Version:

Welcome to react-layered! If you've ever found yourself lost in the jungle of z-index layers, fighting the chaos of overlapping UI elements, then buckle up! This tiny, mighty package is your guide to taming that wild z-index safari in your React projects.

7 lines (6 loc) 221 B
export type ExtractKeys<L> = L extends string ? L : L extends { key: infer K extends string; parts: infer C extends any[]; } ? `${K}.${C[number]}` | K : L extends { key: infer K extends string; } ? K : never;