Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 1.16 KB

types.basetypeimpl.autocaster.md

File metadata and controls

28 lines (17 loc) · 1.16 KB

Home > @skunkteam/types > BaseTypeImpl > autoCaster

BaseTypeImpl.autoCaster() method

The logic that is used in the autocasting version of the current type.

Signature:

protected autoCaster?(this: BaseTypeImpl<ResultType, TypeConfig>, value: unknown): unknown;

Parameters

Parameter Type Description
this BaseTypeImpl<ResultType, TypeConfig>
value unknown the input value to try to autocast to the appropriate form

Returns:

unknown

Remarks

To be overwritten by subclasses if necessary.