UNPKG

@graphity/mapper

Version:

Decorator-based transformer of plain object to class constructors for Javascript(& Typescript).

9 lines (4 loc) 199 B
export type Factory<T> = ((type: any) => T) export type ConstructType<T> = (new (...args: any[]) => T) | Function export type MaybeArray<T> = T | T[] export type MaybeFactory<T> = T | Factory<T>