UNPKG

di-lazy

Version:

Lazy instantiation of the class based on the first access to its reference

4 lines (2 loc) 169 B
declare const lazy: <ClassType extends new (...args: any[]) => any>(ClassCtor: ClassType, ...keys: Array<keyof InstanceType<ClassType>>) => ClassType; export { lazy };