@tscommon/optionOverviewOn this page@tscommon/option Index ClassesNoneOptionSomeType AliasesOptionTypeType Aliases OptionTypeOptionType<T>: T extends Option<infer U> ? U : TReturns the type of the value of the option.@exampletype T0 = OptionType<Option<number>>; // numbertype T1 = OptionType<Option<string>>; // stringtype T2 = OptionType<None>; // neverType parametersT
Returns the type of the value of the option.