Skip to content

CachedJsonMapper

@tsed/json-mapper

Usage ​

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

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

Overview ​

ts
type CachedJsonMapper<Options> = {
    id: string;
    fn: JsonMapperCallback<Options>;
};

Description ​

Executable mapper plus its unique identifier stored in the compiler cache.

id ​

ts
id: string;

fn ​

ts
fn: JsonMapperCallback<Options>;

Released under the MIT License.