Skip to content

TypeMapperEntry

@tsed/json-mapper

Usage ​

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

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

Overview ​

ts
type TypeMapperEntry = {
    mapper: JsonMapperMethods;
    name: string;
    fn: JsonMapperCallback<any>;
};

Description ​

A type mapper registered from the types container: the mapper, the name of its model and the function it was registered with. Subclasses add the values their outdated check compares.

mapper ​

ts
mapper: JsonMapperMethods;

name ​

ts
name: string;

fn ​

ts
fn: JsonMapperCallback<any>;

Released under the MIT License.