Type Alias Keys<Tinput, Toptions, IsBasicProps>

Keys<Tinput, Toptions, IsBasicProps>: KeysOrValues<Tinput, Toptions, true, IsBasicProps>

Returns either or both a) the NestedKeys along with b) the Props of the Tinput, based on the KeysOptions passed.

Follows closely the keys() function, within the limitations of JS/TS ;-)

Type Parameters

  • Tinput

    the input value to get the keys or props of

  • Toptions extends IKeysOptions

    the IKeysOptions to control the output of keys / props

  • IsBasicProps = false

    if true, returns only the basic props (i.e only string | symbol, depending on option's request) of the input value

KeysOrValues which is the main type utility 'function' that does the work.

the NestedKeys / Props of the Tinput, based on the KeysOptions passed (not as an Array, but a plain type).