Set custom mapper name used in error messages in strict for easier debugging.
Defaults to "Mappet"
.
const mapper = mappet(schema, { strict: true, name: "UserMapper" });
Set to true
to enable strict mode
const mapper = mappet(schema, { strict: true });
Generated using TypeDoc
Set to
true
to enable greedy modeconst mapper = mappet(schema, { greedy: true });