UNPKG

typescript-domain

Version:

Decorator-based transformation of JSON or plain Javascript objects to classes

18 lines (17 loc) 518 B
import type { BasicTypes } from './types'; export interface EntityMetadata { target: Function; field: string; type: BasicTypes | Object; array?: boolean; alias?: string; } declare class MetadataStorage { private static _instance; private readonly metadata; static get Instance(): MetadataStorage; getMetadata(target: Function): EntityMetadata[] | undefined; addMetadata(metadata: EntityMetadata): void; } export declare const defaultMetadataStorage: MetadataStorage; export {};