ConverterFactory<T, P extends unknown[]>
ts
type ConverterFactory<T, P extends unknown[]> = (...params: P) => Required<ComplexAttributeConverter<T>>;A helper type to be used to create a converter factory. This is used internally to create converters that can be used with the @property decorator. It allows you to define a converter that takes parameters and returns a ComplexAttributeConverter.
For examples, have a look at the src/converters directory.
Type Parameters
T
T
P
P extends unknown[]
Parameters
params
...P
Returns
Required<ComplexAttributeConverter<T>>