From e45748aa0ab00df4ea95df923290525d3db1ad97 Mon Sep 17 00:00:00 2001 From: Drew Powers Date: Wed, 26 Jul 2023 11:50:50 -0600 Subject: [PATCH] Fix openapi-fetch --- docs/src/content/docs/openapi-fetch/index.md | 2 +- packages/openapi-fetch/README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/content/docs/openapi-fetch/index.md b/docs/src/content/docs/openapi-fetch/index.md index dafa1d8d1..0f07c754e 100644 --- a/docs/src/content/docs/openapi-fetch/index.md +++ b/docs/src/content/docs/openapi-fetch/index.md @@ -43,7 +43,7 @@ Notice **there are no generics, and no manual typing.** Your endpoint’s exact - ✅ No manual typing of your API - ✅ Eliminates `any` types that hide bugs - ✅ Also eliminates `as` type overrides that can also hide bugs -- ✅ All of this in a **1 kB** client package 🎉 +- ✅ All of this in a **2 kB** client package 🎉 ## Setup diff --git a/packages/openapi-fetch/README.md b/packages/openapi-fetch/README.md index 6eefd972a..01b61da83 100644 --- a/packages/openapi-fetch/README.md +++ b/packages/openapi-fetch/README.md @@ -1,6 +1,6 @@ openapi-fetch -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. +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. | Library | Size (min) | | :----------------------------- | ---------: | @@ -8,7 +8,7 @@ openapi-fetch applies your OpenAPI types to the native fetch API via TypeScript. | **openapi-typescript-fetch** | `4 kB` | | **openapi-typescript-codegen** | `345 kB` | -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. +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. ```ts import createClient from "openapi-fetch"; @@ -39,7 +39,7 @@ Notice **there are no generics, and no manual typing.** Your endpoint’s exact - ✅ No manual typing of your API - ✅ Eliminates `any` types that hide bugs - ✅ Also eliminates `as` type overrides that can also hide bugs -- ✅ All of this in a **1 kB** client package 🎉 +- ✅ All of this in a **2 kB** client package 🎉 ## 🔧 Setup