UNPKG

graphql-modules

Version:

Create reusable, maintainable, testable and extendable GraphQL modules

12 lines (11 loc) 617 B
import { Type, ProviderOptions, InjectionToken } from './providers'; import { Injector } from './injector'; export declare function Injectable(options?: ProviderOptions): ClassDecorator; type ParameterDecorator = (target: Object, propertyKey: string | symbol | undefined, parameterIndex: number) => void; export declare function Optional(): ParameterDecorator; export declare function Inject(type: Type<any> | InjectionToken<any>): ParameterDecorator; export type ExecutionContext = { injector: Injector; } & GraphQLModules.ModuleContext; export declare function ExecutionContext(): PropertyDecorator; export {};