UNPKG

740 BTypeScriptView Raw
1import { ContextType, ExecutionContext } from '@nestjs/common';
2import { ExecutionContextHost } from '@nestjs/core/helpers/execution-context-host';
3import { GraphQLArgumentsHost } from './gql-arguments-host';
4export declare type GqlContextType = 'graphql' | ContextType;
5export declare type GraphQLExecutionContext = GqlExecutionContext;
6export declare class GqlExecutionContext extends ExecutionContextHost implements GraphQLArgumentsHost {
7 static create(context: ExecutionContext): GqlExecutionContext;
8 getType<TContext extends string = GqlContextType>(): TContext;
9 getRoot<T = any>(): T;
10 getArgs<T = any>(): T;
11 getContext<T = any>(): T;
12 getInfo<T = any>(): T;
13}
14//# sourceMappingURL=gql-execution-context.d.ts.map
\No newline at end of file