more TS fixes
This commit is contained in:
parent
cee5e128cb
commit
cb87fd8a9a
1 changed files with 0 additions and 18 deletions
|
@ -33,24 +33,6 @@ export interface CacheControlExtensionOptions {
|
|||
stripFormattedExtensions?: boolean;
|
||||
}
|
||||
|
||||
declare module 'graphql/type/definition' {
|
||||
interface GraphQLResolveInfo {
|
||||
// @ts-ignore: FORK. Don't know enough TypeScript to resolve this!
|
||||
cacheControl: {
|
||||
setCacheHint: (hint: CacheHint) => void;
|
||||
cacheHint: CacheHint;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'apollo-server-types' {
|
||||
interface GraphQLRequestContext<TContext> {
|
||||
// Not readonly: plugins can set it.
|
||||
// @ts-ignore: FORK. Don't know enough TypeScript to resolve this!
|
||||
overallCachePolicy?: Required<CacheHint> | undefined;
|
||||
}
|
||||
}
|
||||
|
||||
type MapResponsePathHints = Map<ResponsePath, CacheHint>;
|
||||
|
||||
export const plugin = (
|
||||
|
|
Loading…
Reference in a new issue