1 | import { ContextType, ExecutionContext } from '@nestjs/common';
|
2 | import { ExecutionContextHost } from '@nestjs/core/helpers/execution-context-host';
|
3 | import { GraphQLArgumentsHost } from './gql-arguments-host';
|
4 | export type GqlContextType = 'graphql' | ContextType;
|
5 | export type GraphQLExecutionContext = GqlExecutionContext;
|
6 | export 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 |
|
\ | No newline at end of file |