Function: makeCaster()
function makeCaster<T>(constructors): (shape) => T;
Defined in: packages/replicad/src/shapeFunctions/casting.ts:20
Builds a cast function from the concrete wrappers to instantiate.
This keeps the casting module independent from the wrapper classes, while letting the caller keep the mapping fully typed.
Type Parameters
T
T
Parameters
constructors
Returns
(shape) => T