Get keys of the given type as strings.
Number keys are converted to strings.
Use-cases:
import type {StringKeyOf} from 'type-fest';type Foo = { 1: number, stringKey: string,};type StringKeysOfFoo = StringKeyOf<Foo>;//=> '1' | 'stringKey' Copy
import type {StringKeyOf} from 'type-fest';type Foo = { 1: number, stringKey: string,};type StringKeysOfFoo = StringKeyOf<Foo>;//=> '1' | 'stringKey'
Get keys of the given type as strings.
Number keys are converted to strings.
Use-cases: