Home > @skunkteam/types > BaseTypeImpl > autoCaster
The logic that is used in the autocasting version of the current type.
Signature:
protected autoCaster?(this: BaseTypeImpl<ResultType, TypeConfig>, value: unknown): unknown;
Parameter | Type | Description |
---|---|---|
this | BaseTypeImpl<ResultType, TypeConfig> | |
value | unknown | the input value to try to autocast to the appropriate form |
Returns:
unknown
To be overwritten by subclasses if necessary.