OptionConfig

type
type OptionConfig =
  | StringOptionConfig<TCoerce, TChoices>
  | NumberOptionConfig<TCoerce, TChoices>
  | ArrayOptionConfig<TCoerce, TChoices>
  | BooleanOptionConfig<TCoerce, TChoices>
  | ObjectOptionConfig<TCoerce, TObjectProps>
  | OneOfOptionConfig<any>;

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

  • StringOptionConfig
  • NumberOptionConfig
  • ArrayOptionConfig
  • BooleanOptionConfig
  • OneOfOptionConfig