inngest / inngest-js

The developer platform for easily building reliable workflows with zero infrastructure for TypeScript & JavaScript
https://www.inngest.com/
GNU General Public License v3.0
440 stars 43 forks source link

Revert "Do not allow objectish `[]` event data; only actual objects" #660

Closed jpwilliams closed 3 months ago

jpwilliams commented 3 months ago

Summary

Revert the fix for disallowing "objectish" event data.

While {} are only allowed at runtime, Record<string, unknown> is not valid for interfaces, which require index signatures. 🫠

Checklist

Related

changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: dfe88c5ccddbd47d657d27b04ad5fe03c035a14e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------- | ----- | | inngest | Patch |

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