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.)
Usage
import { types } from ".";