apollo-server-plugin-base
Advanced tools
Comparing version 0.1.0-alpha.1 to 0.1.0-alpha.2
@@ -9,10 +9,9 @@ import { GraphQLServiceContext, GraphQLRequestContext, GraphQLRequest, GraphQLResponse } from 'apollo-server-core/dist/requestPipelineAPI'; | ||
export declare type WithRequired<T, K extends keyof T> = T & Required<Pick<T, K>>; | ||
export declare type DidEndHook<TArgs extends any[]> = (...args: TArgs) => void; | ||
export interface GraphQLRequestListener<TContext = Record<string, any>> { | ||
parsingDidStart?(requestContext: GraphQLRequestContext<TContext>): DidEndHook<[Error?]> | void; | ||
validationDidStart?(requestContext: WithRequired<GraphQLRequestContext<TContext>, 'document'>): DidEndHook<[ReadonlyArray<Error>?]> | void; | ||
parsingDidStart?(requestContext: GraphQLRequestContext<TContext>): (err?: Error) => void | void; | ||
validationDidStart?(requestContext: WithRequired<GraphQLRequestContext<TContext>, 'document'>): (err?: ReadonlyArray<Error>) => void | void; | ||
didResolveOperation?(requestContext: WithRequired<GraphQLRequestContext<TContext>, 'document' | 'operationName' | 'operation'>): ValueOrPromise<void>; | ||
executionDidStart?(requestContext: WithRequired<GraphQLRequestContext<TContext>, 'document' | 'operationName' | 'operation'>): DidEndHook<[Error?]> | void; | ||
executionDidStart?(requestContext: WithRequired<GraphQLRequestContext<TContext>, 'document' | 'operationName' | 'operation'>): (err?: Error) => void | void; | ||
willSendResponse?(requestContext: WithRequired<GraphQLRequestContext<TContext>, 'response'>): ValueOrPromise<void>; | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "apollo-server-plugin-base", | ||
"version": "0.1.0-alpha.1", | ||
"version": "0.1.0-alpha.2", | ||
"description": "Apollo Server plugin base classes", | ||
@@ -14,3 +14,3 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"apollo-server-core": "2.2.0-alpha.1", | ||
"apollo-server-core": "2.2.0-alpha.2", | ||
"apollo-server-env": "2.1.0-alpha.1" | ||
@@ -21,3 +21,3 @@ }, | ||
}, | ||
"gitHead": "5b8388323325c14970601310d7864b86010cbebe" | ||
"gitHead": "a6872c2f6ca2db03e9f237510b3fc6802d390785" | ||
} |
@@ -24,3 +24,2 @@ import { | ||
export type WithRequired<T, K extends keyof T> = T & Required<Pick<T, K>>; | ||
export type DidEndHook<TArgs extends any[]> = (...args: TArgs) => void; | ||
@@ -30,6 +29,6 @@ export interface GraphQLRequestListener<TContext = Record<string, any>> { | ||
requestContext: GraphQLRequestContext<TContext>, | ||
): DidEndHook<[Error?]> | void; | ||
): (err?: Error) => void | void; | ||
validationDidStart?( | ||
requestContext: WithRequired<GraphQLRequestContext<TContext>, 'document'>, | ||
): DidEndHook<[ReadonlyArray<Error>?]> | void; | ||
): (err?: ReadonlyArray<Error>) => void | void; | ||
didResolveOperation?( | ||
@@ -46,3 +45,3 @@ requestContext: WithRequired< | ||
>, | ||
): DidEndHook<[Error?]> | void; | ||
): (err?: Error) => void | void; | ||
willSendResponse?( | ||
@@ -49,0 +48,0 @@ requestContext: WithRequired<GraphQLRequestContext<TContext>, 'response'>, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6248
63