interface asyncTypes.AsyncObjectMapperFunction

A callable function, equivalent to calling AsyncObjectMapper#map. It also exposes AsyncObjectMapperFunction#schema as a readonly property.

Type Parameters

TInput extends object
TOutput extends object
TContext extends object | undefined = undefined

Call Signatures

(
value: TInput,
context: OptionalArgIfUndefined<TContext>,
): Promise<TOutput>

Properties

Usage

import { asyncTypes } from ".";