Skip to main content

Type Alias: OptionConfigToType<TOptionConfig>

OptionConfigToType<TOptionConfig>: UndefinedIfRequiredAndNoDefault<TOptionConfig, InferTChoice<TOptionConfig> extends [never] ? TOptionConfig["coerce"] extends (s) => any ? ReturnType<TOptionConfig["coerce"]> : object[TOptionConfig["type"]] : InferTChoice<TOptionConfig>>

Converts an OptionConfig to the TypeScript type for the parsed value.

Type Parameters

TOptionConfig extends OptionConfig

Defined in

packages/parser/src/lib/option-types/option-config-to-type.ts:8