Skip to content

Commit

Permalink
useJIT accepts context generic for proper inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Oct 26, 2024
1 parent dc54d58 commit bb40dbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tough-dryers-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-mesh/plugin-jit': patch
---

Accept context generic for proper inheritance
2 changes: 1 addition & 1 deletion packages/plugins/jit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function createExecuteFnWithJit() {
};
}

export function useJIT(): Plugin {
export function useJIT<PluginContext extends Record<string, any> = {}>(): Plugin<PluginContext> {
const executeFnWithJit = createExecuteFnWithJit();
return {
onExecute({ setExecuteFn }) {
Expand Down

0 comments on commit bb40dbf

Please sign in to comment.