Skip to content

convert

convert<TKind>(kind, value): Promise<TypeOf<TKind> | TypeOf<TKind>[]>

Defined in: packages/input/dist/index.d.mts:102

Converts a value from a Kind to a TypeScript type.

TKind extends Kind

TKind

The kind to convert to.

string | string[]

The value to convert.

Promise<TypeOf<TKind> | TypeOf<TKind>[]>

The converted value.