Skip to content

Commit 1877f90

Browse files
authored
Fix openapi-fetch (#1255)
1 parent 99cd032 commit 1877f90

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/src/content/docs/openapi-fetch/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Notice **there are no generics, and no manual typing.** Your endpoint’s exact
4343
- ✅ No manual typing of your API
4444
- ✅ Eliminates `any` types that hide bugs
4545
- ✅ Also eliminates `as` type overrides that can also hide bugs
46-
- ✅ All of this in a **1 kB** client package 🎉
46+
- ✅ All of this in a **2 kB** client package 🎉
4747

4848
## Setup
4949

packages/openapi-fetch/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<img src="../../docs/public/assets/openapi-fetch.svg" alt="openapi-fetch" width="216" height="40" />
22

3-
openapi-fetch applies your OpenAPI types to the native fetch API via TypeScript. Weighs **2 kb** and has virtually zero runtime. Works with React, Vue, Svelte, or vanilla JS.
3+
openapi-fetch applies your OpenAPI types to the native fetch API via TypeScript. Weighs **2 kB** and has virtually zero runtime. Works with React, Vue, Svelte, or vanilla JS.
44

55
| Library | Size (min) |
66
| :----------------------------- | ---------: |
77
| **openapi-fetch** | `2 kB` |
88
| **openapi-typescript-fetch** | `4 kB` |
99
| **openapi-typescript-codegen** | `345 kB` |
1010

11-
The syntax is inspired by popular libraries like react-query or Apollo client, but without all the bells and whistles and in a 2 kb package.
11+
The syntax is inspired by popular libraries like react-query or Apollo client, but without all the bells and whistles and in a 2 kB package.
1212

1313
```ts
1414
import createClient from "openapi-fetch";
@@ -39,7 +39,7 @@ Notice **there are no generics, and no manual typing.** Your endpoint’s exact
3939
- ✅ No manual typing of your API
4040
- ✅ Eliminates `any` types that hide bugs
4141
- ✅ Also eliminates `as` type overrides that can also hide bugs
42-
- ✅ All of this in a **1 kB** client package 🎉
42+
- ✅ All of this in a **2 kB** client package 🎉
4343

4444
## 🔧 Setup
4545

0 commit comments

Comments
 (0)