Protected Readonly_source ObjectSchemaBuilder
target ObjectSchemaBuilder
callback that configures property mappings on the mapper
a new MappingRegistry containing all previous mappings plus the newly configured one
Gets a mapper function that will map from the fromSchema to the toSchema. Throws an error if no mapper is found for the given schemas pair.
a schema to map from
a schema to map to
a function that will take a value of the fromSchema type as an argument and return a promise resolving to a value of the toSchema type
Retrieve a registered synchronous mapper inferred from configure(). The pair must be registered and its final steps must all be synchronous. Async mappings remain usable with getMapper(); configuration never executes compute callbacks. Unexpected thenables throw when the returned mapper runs.
Defines a mapping between two schemas and returns a new immutable registry containing the mapping. The callback
fnreceives a freshMapperand must return it after configuring property mappings. The mapper is automatically finalized and registered. Properties not explicitly mapped or ignored may be auto-mapped if a matching nested mapping is already registered in the registry.