1.0.0 • Published 3 years ago
@neat-tech/type-utils v1.0.0
Type Utils
Installation
yarn add @neat-tech/type-utils
Usage
Nested path
interface Example {
some: {
nested: {
array: string[]
}
field: number
}
}
type Keys = Path8<Example>
/**
'some' | 'some.nested' | 'some.nested.array' | 'some.nested.array.0'
| 'some.field'
*/
type Value = Get8<Example, 'some.nested.array.0'> // string