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. |
|
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.
Name | Type |
---|---|
T |
extends ParameterType |
O |
extends ParameterOptions <T > |