diff --git a/.changeset/tough-dryers-deliver.md b/.changeset/tough-dryers-deliver.md new file mode 100644 index 0000000000000..808eabdbab7e7 --- /dev/null +++ b/.changeset/tough-dryers-deliver.md @@ -0,0 +1,5 @@ +--- +'@graphql-mesh/plugin-jit': patch +--- + +Accept context generic for proper inheritance diff --git a/packages/plugins/jit/src/index.ts b/packages/plugins/jit/src/index.ts index 7c16e906031c4..452ac3eb03e53 100644 --- a/packages/plugins/jit/src/index.ts +++ b/packages/plugins/jit/src/index.ts @@ -31,7 +31,7 @@ function createExecuteFnWithJit() { }; } -export function useJIT(): Plugin { +export function useJIT = {}>(): Plugin { const executeFnWithJit = createExecuteFnWithJit(); return { onExecute({ setExecuteFn }) {