type alias types.OptionalArgIfUndefined

An ObjectMapper can take an optional context. The context type is defined when you instantiate an ObjectMapper. If the context type is undefined, rather than passing undefined every time, you can just omit the property. (You can still pass undefined, for parity with the mappers that require a context.)

Type Parameters

Definition

T extends undefined ? T | void : T

Usage

import { types } from ".";