type alias asyncTypes.AsyncMapperSchemaValue

A mapper function, or input property name, used in an AsyncObjectMapperSchema.

In an AsyncObjectMapperSchema, each property value can be either:

  • An AsyncMapperFunction
  • A property name from the input object. The property value must be compatible with the output property.

Type Parameters

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

Definition

AsyncMapperFunction<TInput, TOutput, TContext, TOutputKey> | AllowInputKeyIfInputCanExtendOutput<TInput, TOutput[TOutputKey]>

Usage

import { asyncTypes } from ".";