Interface ModelPropTransform<TOriginal, TTransformed>
Methods
transform
- transform(params): TTransformed
Parameters
- params: {
cachedTransformedValue: undefined | TTransformed;
originalValue: TOriginal;
setOriginalValue(value: TOriginal): void;
}cachedTransformedValue: undefined | TTransformed
setOriginalValue:function
- setOriginalValue(value): void
Returns void
untransform
- untransform(params): TOriginal
Parameters
- params: {
cacheTransformedValue: (() => void);
transformedValue: TTransformed;
}cacheTransformedValue: (() => void)
A model prop transform.