The primitive types for each option type.
This is used to map each option type to its corresponding primitive type. Using declaration merging, the types can be altered to make types more specific or extended for custom option types.
declaration merging
declare module 'clide-js' { interface OptionPrimitiveTypeMap { number: 0 | 1; custom: CustomType; }} Copy
declare module 'clide-js' { interface OptionPrimitiveTypeMap { number: 0 | 1; custom: CustomType; }}
The primitive types for each option type.
This is used to map each option type to its corresponding primitive type. Using
declaration merging
, the types can be altered to make types more specific or extended for custom option types.Example