Skip to content

Commit

Permalink
Fix TS
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Sep 27, 2023
1 parent 4fc00ad commit 2447089
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/plugins/response-cache/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { ExecutionResult } from 'graphql';
import { Maybe, Plugin, PromiseOrValue, YogaInitialContext, YogaLogger } from 'graphql-yoga';
import {
createInMemoryCache,
defaultBuildResponseCacheKey,

Check failure on line 4 in packages/plugins/response-cache/src/index.ts

View workflow job for this annotation

GitHub Actions / release-candidate / snapshot

Individual declarations in merged declaration 'createInMemoryCache' must be all exported or all local.

Check failure on line 4 in packages/plugins/response-cache/src/index.ts

View workflow job for this annotation

GitHub Actions / release-candidate / snapshot

Import declaration conflicts with local declaration of 'createInMemoryCache'.
BuildResponseCacheKeyFunction as EnvelopBuildResponseCacheKeyFunction,
Cache as EnvelopCache,
Expand Down Expand Up @@ -82,7 +81,7 @@ interface Cache extends EnvelopCache {
export function useResponseCache(options: UseResponseCacheParameter): Plugin {
const buildResponseCacheKey: BuildResponseCacheKeyFunction =
options?.buildResponseCacheKey || defaultBuildResponseCacheKey;
const cache = options.cache ?? (createInMemoryCache() as Cache);
const cache = options.cache ?? (envelopCreateInMemoryCache() as Cache);
const enabled = options.enabled ?? (() => true);
let logger: YogaLogger;
return {
Expand Down

0 comments on commit 2447089

Please sign in to comment.