graphql-modules
Version:
Create reusable, maintainable, testable and extendable GraphQL modules
18 lines (17 loc) • 442 B
TypeScript
import { InjectionToken } from '../di';
/**
* @api
* `CONTEXT` is an InjectionToken representing the provided `GraphQLModules.GlobalContext`
*
* @example
*
* ```typescript
* import { CONTEXT, Inject, Injectable } from 'graphql-modules';
*
* (A)Injectable()
* export class Data {
* constructor((A)Inject(CONTEXT) private context: GraphQLModules.GlobalContext) {}
* }
* ```
*/
export declare const CONTEXT: InjectionToken<any>;