UNPKG

@yamamotok/dataobject

Version:

Decorator based JSON serializer and deserializer.

12 lines (11 loc) 333 B
import { FactoryFunction } from './types'; export declare class Factory { static readonly DefaultContext = "factory"; /** * Create factory method. * @param ctor the class * * Note: Avoid using `this` in this method. */ static createFactory<T>(ctor: new () => T): FactoryFunction<T>; }