Skip to content

Commit db6668f

Browse files
authored
Docs fixes (#1541)
1 parent b2a9c8f commit db6668f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: docs/openapi-fetch/about.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ description: openapi-fetch Project Goals, comparisons, and more
2020

2121
### vs. Axios
2222

23-
[Axios](https://axios-http.com) doesn’t automatically typecheck against your OpenAPI schema. Further, there’s no easy way to do that. Axios does have more features than openapi-fetch such as request/responce interception and cancellation.
23+
[Axios](https://axios-http.com) doesn’t automatically typecheck against your OpenAPI schema. Further, there’s no easy way to do that. Axios does have more features than openapi-fetch such as interceptors and advanced cancellation.
2424

2525
### vs. tRPC
2626

2727
[tRPC](https://trpc.io/) is meant for projects where both the backend and frontend are written in TypeScript (Node.js). openapi-fetch is universal, and can work with any backend that follows an OpenAPI 3.x schema.
2828

2929
### vs. openapi-typescript-fetch
3030

31-
[openapi-typescript-fetch](https://github.com/ajaishankar/openapi-typescript-fetch) predates openapi-fetch, and is nearly identical in purpos, but differs mostly in syntax (so it’s more of an opinionated choice):
31+
[openapi-typescript-fetch](https://github.com/ajaishankar/openapi-typescript-fetch) predates openapi-fetch, and is nearly identical in purpose, but differs mostly in syntax (so it’s more of an opinionated choice):
3232

33-
- This library has a built-in `error` type for `3xx`/`4xx`/`5xx` errors whereas openapi-typescript-fetch throws exceptions (requiring you to wrap things in `try/catch`)
34-
- This library has a more terse syntax (`get(…)`) wheras openapi-typescript-fetch requires chaining (`.path(…).method(…).create()`)
33+
- openapi-typescript-fetch throws exceptions for non-OK responses (requiring you to wrap things in `try/catch`) rather than follow the fetch API spec of not throwing.
34+
- openapi-typescript-fetch’s syntax is more verbose, and relies on chaining (`.path(…).method(…).create()`).
3535

3636
### vs. openapi-typescript-codegen
3737

0 commit comments

Comments
 (0)