@kizunajs/fetch 2.0.0-beta.13 → 2.0.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.cjs +925 -242
- package/dist/index.d.cts +54 -163
- package/dist/index.d.mts +54 -163
- package/dist/index.mjs +923 -230
- package/package.json +7 -18
- package/dist/server.cjs +0 -542
- package/dist/server.d.cts +0 -65
- package/dist/server.d.mts +0 -65
- package/dist/server.mjs +0 -537
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @kizunajs/fetch
|
|
2
2
|
|
|
3
|
-
`@kizunajs/fetch`
|
|
3
|
+
`@kizunajs/fetch` writes a typed client for your routes, a wrapper around the native `fetch` API. The client runs anywhere `fetch` does, React Native included, and imports nothing, so the app that calls your API installs nothing.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ pnpm add @kizunajs/fetch
|
|
|
13
13
|
Add `fetchClient` to your config and run `kizuna generate`:
|
|
14
14
|
|
|
15
15
|
```ts
|
|
16
|
-
import { fetchClient } from '@kizunajs/fetch
|
|
16
|
+
import { fetchClient } from '@kizunajs/fetch';
|
|
17
17
|
|
|
18
18
|
export default defineConfig({
|
|
19
19
|
adapter: expressAdapter(),
|