Skip to content

Commit

Permalink
Allow typings for InngestFunction["client"] (#803)
Browse files Browse the repository at this point in the history
## Summary
<!-- Succinctly describe your change, providing context, what you've
changed, and why. -->

Allows typings to be published for `myFn["client"]`.

## Checklist
<!-- Tick these items off as you progress. -->
<!-- If an item isn't applicable, ideally please strikeout the item by
wrapping it in "~~"" and suffix it with "N/A My reason for skipping
this." -->
<!-- e.g. "- [ ] ~~Added tests~~ N/A Only touches docs" -->

- [ ] ~Added a [docs PR](https://github.com/inngest/website) that
references this PR~ N/A Abstract change
- [ ] ~Added unit/integration tests~ N/A
- [x] Added changesets if applicable
  • Loading branch information
jpwilliams authored Jan 16, 2025
1 parent 8d1d6d7 commit 008d971
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dirty-poets-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"inngest": patch
---

`myFn["client"]` is now typed
2 changes: 1 addition & 1 deletion packages/inngest/src/components/InngestFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<MiddlewareRegisterReturn[]>;

/**
Expand Down

0 comments on commit 008d971

Please sign in to comment.