diff --git a/.changeset/dirty-poets-begin.md b/.changeset/dirty-poets-begin.md new file mode 100644 index 000000000..70237f887 --- /dev/null +++ b/.changeset/dirty-poets-begin.md @@ -0,0 +1,5 @@ +--- +"inngest": patch +--- + +`myFn["client"]` is now typed diff --git a/packages/inngest/src/components/InngestFunction.ts b/packages/inngest/src/components/InngestFunction.ts index 6744f4cee..c868df84a 100644 --- a/packages/inngest/src/components/InngestFunction.ts +++ b/packages/inngest/src/components/InngestFunction.ts @@ -53,7 +53,7 @@ export class InngestFunction< public readonly opts: TFnOpts; private readonly fn: THandler; private readonly onFailureFn?: TFailureHandler; - private readonly client: TClient; + protected readonly client: TClient; private readonly middleware: Promise; /**