Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 972 Bytes

core.ParamDefFromOptionsUnion.md

File metadata and controls

21 lines (16 loc) · 972 Bytes
nav note search
ParamDefFromOptionsUnion
This file is autogenerated from TypeScript definitions. Make edits to the comments in the TypeScript file and then run `make docs` to regenerate this file.
boost
0.1

Type alias: ParamDefFromOptionsUnion<T, O>

core.ParamDefFromOptionsUnion

Ƭ ParamDefFromOptionsUnion<T, O>: Omit<O, "type" | "autocomplete"> & { autocomplete: MetadataFormula ; type: O extends ParameterOptions<infer S> ? ParameterTypeMap[S] : never }

Equivalent to ParamDef. A helper type to generate a param def based on the inputs to makeParameter.

Type parameters

Name Type
T extends ParameterType
O extends ParameterOptions<T>