Skip to content

Interface: TypeFunction()<T>

Defined in: packages/parser/src/types.ts:17

Defines how a string input is converted to the target type T.

Type Parameters

Type ParameterDefault typeDescription

T

unknown

The target type.

ts
TypeFunction(value): T;

Defined in: packages/parser/src/types.ts:18

Defines how a string input is converted to the target type T.

Parameters

ParameterType

value

string

Returns

T

Properties

PropertyTypeDescriptionDefined in

display?

string

Optional display name for the type, useful in help output. If provided, this will be shown instead of the function name.

packages/parser/src/types.ts:23

Released under the MIT license