The developer platform for easily building reliable workflows with zero infrastructure for TypeScript & JavaScript
GNU General Public License v3.0
414
stars
41
forks
source link
[BUG] TypeScript does not allow "inngest/function.failed" for event key #454
Closed
gwax closed 7 months ago
Describe the bug When attempting to add a generic failure handler, typescript refuses to accept
"inngest/function.failed"
as an event key.To Reproduce Create a new inngest:
Attempt to construct a failure handler per the documentation
It works fine, if we reference the enum directly but that doesn't match the documentation and requires the use of a variable called internal
Expected behavior No type error when specifying
{ event: "inngest/function.failed" },
Code snippets / Logs / Screenshots If applicable, add screenshots to help explain your problem.
System info (please complete the following information):
Additional context Add any other context about the problem here.