@triviality/serializer
Version:
Typescript serializer with an interface
11 lines (10 loc) • 479 B
TypeScript
import { ClassConstructor } from './ClassConstructor';
export declare const METADATA_SYMBOL: unique symbol;
/**
* TODO: solve issue why 'reflect-metadata' does not work outside of this project if there are multiple instances.
*/
export declare class Metadata {
static defineMetadata(key: symbol | string, metadata: any, target: ClassConstructor<any>): any;
static getMetadata(key: symbol | string, target: ClassConstructor<any>): any;
private static getByTarget;
}