UNPKG

@tsed/json-mapper

Version:
11 lines (10 loc) 538 B
import { Type } from "@tsed/core"; import { JsonMapperMethods } from "../interfaces/JsonMapperMethods.js"; /** * Register a mapper class for a specific primitive/complex type so it can be reused by the serializers. */ export declare function registerJsonTypeMapper(type: Type<any> | Symbol | string, token: Type<JsonMapperMethods>): void; /** * Retrieve the registry of custom JSON mapper instances keyed by the types they support. */ export declare function getJsonMapperTypes(): Map<Type<any> | Symbol | string, JsonMapperMethods>;