UNPKG

@eggjs/tegg-plugin

Version:

module plugin for egg

19 lines (18 loc) 731 B
import { EggCompatibleProtoImpl } from './EggCompatibleProtoImpl.js'; import { EggObject } from '@eggjs/tegg-runtime'; import { EggObjectName } from '@eggjs/tegg'; import { EggPrototype } from '@eggjs/tegg-metadata'; declare const OBJ: unique symbol; export declare class EggCompatibleObject implements EggObject { readonly isReady: boolean; private [OBJ]; readonly proto: EggCompatibleProtoImpl; readonly name: EggObjectName; readonly id: string; readonly isContext: boolean; constructor(name: EggObjectName, proto: EggCompatibleProtoImpl); get obj(): object; injectProperty(): void; static createObject(name: EggObjectName, proto: EggPrototype): Promise<EggCompatibleObject>; } export {};