UNPKG

type-transformer

Version:

Transformation / serialization / deserialization of plain JavaScript objects to typed objects and vice versa

9 lines (8 loc) 302 B
import { Schema } from './schema'; export declare class SchemaRegistry { schemasByType: Map<Function, Schema>; getOrCreateSchema(type: Function): Schema; getSchema(type: Function): Schema | undefined; clear(): void; } export declare const defaultSchemaRegistry: SchemaRegistry;