Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
as string
casting of unknown
error` when parsing API errors (
#485) ## Summary <!-- Succinctly describe your change, providing context, what you've changed, and why. --> 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 <!-- 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 Bug fix - [ ] ~~Added unit/integration tests~~ N/A - [x] Added changesets if applicable ## Related <!-- A space for any related links, issues, or PRs. --> <!-- Linear issues are autolinked. --> <!-- e.g. - INN-123 --> <!-- GitHub issues/PRs can be linked using shorthand. --> <!-- e.g. "- inngest/inngest#123" --> <!-- Feel free to remove this section if there are no applicable related links.--> - Fixes #482
- Loading branch information