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
TunknownThe 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
valuestring

Returns

T

Properties

PropertyTypeDescriptionDefined in
display?stringOptional 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