UNPKG

@opra/core

Version:
26 lines (25 loc) 761 B
import { DocumentNode, OpraSchema } from '@opra/common'; import { AsyncEventEmitter } from 'node-events-async'; import type { PlatformAdapter } from './platform-adapter.js'; /** * @class ExecutionContext */ export declare class ExecutionContext extends AsyncEventEmitter { readonly __docNode: DocumentNode; readonly __adapter: PlatformAdapter; readonly transport?: OpraSchema.Transport; readonly platform: string; errors: Error[]; constructor(init: ExecutionContext.Initiator); } /** * @namespace ExecutionContext */ export declare namespace ExecutionContext { interface Initiator { __adapter: PlatformAdapter; __docNode: DocumentNode; transport?: OpraSchema.Transport; platform?: string; } }