Closed jpwilliams closed 9 months ago
Latest commit: 44ba011a561368e0dccf01863153f499da61cc67
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Summary
As seen in #452, the
GetEvents<>
type helper returns user-defined and internal functions such asinngest/function.finished
. This was an unintentional change to the helper when adding internal events to the typing in #426.The most common use for this helper is to create shims over
inngest.send()
. The inclusion of the internal events in this helper type means that the type cannot be passed toinngest.send()
without wrapping it withWithoutInternal<>
.In this PR, we change
GetEvents<>
to now only return the user's events by default. If a user wishes to access internal events too, they can pass an extra generic parameter to do so:Checklist
Related