Skip to content

JsonMapperCallback

@tsed/json-mapper

Usage

typescript
import { JsonMapperCallback } from "@tsed/specs/json-mapper/src/domain/JsonMapperCompiler";

See /packages/specs/json-mapper/src/domain/JsonMapperCompiler.ts.

Overview

ts
type JsonMapperCallback<Options> = (input: any, options?: Options) => any;

Description

Signature exposed by compiled mappers. They accept an input value plus contextual options and return the serialized/deserialized result.

Released under the MIT License.