UNPKG

grafast

Version:

Cutting edge GraphQL planning and execution engine

18 lines 1.11 kB
import type { ExecutionDetailsStream, StepStreamOptions } from "../../interfaces.ts"; import type { Step } from "../../step.ts"; import type { LayerPlan } from "../LayerPlan.ts"; export declare function withGlobalLayerPlan<T, TThis = any, TArgs extends [...args: any[]] = [...args: any[]]>(layerPlan: LayerPlan, polymorphicPaths: ReadonlySet<string> | null, planningPath: string | null, stepStreamOptions: StepStreamOptions | true | null, callback: (this: TThis, ...args: TArgs) => T, callbackThis?: TThis, ...callbackArgs: TArgs): T; export declare function currentLayerPlan(): LayerPlan; export declare function currentPolymorphicPaths(): ReadonlySet<string> | null; /** UNUSED */ export declare function currentPlanningPath(): string | undefined; /** * Step - stream details. * true - Not a stream, but it is a subscription. * null - neither stream nor subscription * * @experimental */ export declare function currentFieldStreamDetails(): Step<ExecutionDetailsStream | null> | true | null; export declare function isUnaryStep($step: Step): boolean; //# sourceMappingURL=withGlobalLayerPlan.d.ts.map