Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MappetOptions

Hierarchy

  • MappetOptions

Index

Properties

Properties

Optional greedy

greedy: undefined | true | false

Set to true to enable greedy mode

const mapper = mappet(schema, { greedy: true });

Optional name

name: undefined | string

Set custom mapper name used in error messages in strict for easier debugging.

Defaults to "Mappet".

const mapper = mappet(schema, { strict: true, name: "UserMapper" });

Optional strict

strict: undefined | true | false

Set to true to enable strict mode

const mapper = mappet(schema, { strict: true });

Generated using TypeDoc