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 > |