hey-api / openapi-ts

🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more. Support: @mrlubos
https://heyapi.dev
Other
1.36k stars 105 forks source link

feat: add error interceptors to fetch client #1098

Closed mrlubos closed 1 month ago

mrlubos commented 1 month ago

Closes https://github.com/hey-api/openapi-ts/issues/1029

stackblitz[bot] commented 1 month ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: df5c69048a03a1c7729a5200c586164287a8a6fa

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

This PR includes changesets to release 5 packages | Name | Type | | ----------------------------------------- | ----- | | @hey-api/client-fetch | Minor | | @example/openapi-ts-fetch | Patch | | @example/openapi-ts-tanstack-react-query | Patch | | @example/openapi-ts-tanstack-svelte-query | Patch | | @example/openapi-ts-tanstack-vue-query | 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

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hey-api-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2024 0:52am
codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 81.14%. Comparing base (9c4b005) to head (df5c690). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1098 +/- ## ======================================= Coverage 81.14% 81.14% ======================================= Files 102 102 Lines 11540 11540 Branches 1234 1234 ======================================= Hits 9364 9364 Misses 2173 2173 Partials 3 3 ``` | [Flag](https://app.codecov.io/gh/hey-api/openapi-ts/pull/1098/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/hey-api/openapi-ts/pull/1098/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api) | `81.14% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

pkg-pr-new[bot] commented 1 month ago

Open in Stackblitz

pnpm add https://pkg.pr.new/@hey-api/client-axios@1098
pnpm add https://pkg.pr.new/@hey-api/client-fetch@1098
pnpm add https://pkg.pr.new/@hey-api/openapi-ts@1098

commit: df5c690