Skip to main content

Type Alias: OptionConfig<TCoerce, TChoices, TObjectProps>

OptionConfig<TCoerce, TChoices, TObjectProps>: StringOptionConfig<TCoerce, TChoices> | NumberOptionConfig<TCoerce, TChoices> | ArrayOptionConfig<TCoerce, TChoices> | BooleanOptionConfig<TCoerce, TChoices> | ObjectOptionConfig<TCoerce, TObjectProps>

Configures an option for the parser. See subtypes for more information.

Type Parameters

TCoerce = any

The return type of the coerce function if provided.

TChoices = any[]

TObjectProps extends Record<string, OptionConfig> = Record<string, any>

Defined in

packages/parser/src/lib/option-types/option-config.ts:17