UNPKG

@eggjs/tegg-dynamic-inject-runtime

Version:
18 lines (17 loc) 765 B
import { EggObjectFactoryPrototype } from './EggObjectFactoryPrototype'; import type { EggRuntimeContext, EggObject, EggObjectName, EggPrototype } from '@eggjs/tegg-types'; import { EggObjectFactory } from './EggObjectFactory'; declare const OBJ: unique symbol; export declare class EggObjectFactoryObject implements EggObject { readonly proto: EggObjectFactoryPrototype; readonly name: EggObjectName; readonly ctx?: EggRuntimeContext; readonly id: string; private [OBJ]; constructor(name: EggObjectName, proto: EggObjectFactoryPrototype); get obj(): EggObjectFactory; static createObject(name: EggObjectName, proto: EggPrototype): Promise<EggObjectFactoryObject>; readonly isReady: true; injectProperty(): any; } export {};