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

display?

ts
optional display: string;

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

Type Parameters

T

T = unknown

The target type.

在 MIT 许可证下发布