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
414 stars 41 forks source link

Remove `as string` casting of `unknown `error` when parsing API errors #485

Closed jpwilliams closed 7 months ago

jpwilliams commented 7 months ago

Summary

Fixes #482, removing an as string cast for an unknown error thrown from fetching data from the API.

An ESLint rule that requires an exemption when casting would be good.

Checklist

Related

changeset-bot[bot] commented 7 months ago

🦋 Changeset detected

Latest commit: 2d0d10f4a0454b4ba18cc980096fc946fe62bc6f

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