Skip to content

Type Alias: FlagTypeFunction<T>

ts
type 
FlagTypeFunction
<
T
> = (
value
) =>
T
& object;

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

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

Type Declaration

NameTypeDescriptionDefined 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:19

Type Parameters

Type ParameterDefault typeDescription
TunknownThe target type.

在 MIT 许可证下发布