lazy-helpers.d.ts 374 B

123456789
  1. import constructor from "./types/constructor";
  2. export declare class DelayedConstructor<T> {
  3. private wrap;
  4. private reflectMethods;
  5. constructor(wrap: () => constructor<T>);
  6. createProxy(createObject: (ctor: constructor<T>) => T): T;
  7. private createHandler;
  8. }
  9. export declare function delay<T>(wrappedConstructor: () => constructor<T>): DelayedConstructor<T>;