@neat-tech/type-utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @neat-tech/type-utils

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

12.9 kB

Total Files

17

Last publish

Collaborators

  • ruslana_x
  • vmajsuk