type alias types.MapperSchemaValue

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

In an ObjectMapperSchema, each property value can be either:

  • A MapperFunction
  • 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

Usage

import { types } from ".";