@hey-api/openapi-ts 0.80.15 → 0.80.17
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 +7 -7
- package/dist/{chunk-IF5PESMD.js → chunk-X4P65NTE.js} +18 -18
- package/dist/chunk-X4P65NTE.js.map +1 -0
- package/dist/clients/angular/client.ts +12 -11
- package/dist/clients/nuxt/client.ts +6 -1
- package/dist/clients/nuxt/types.ts +1 -0
- package/dist/clients/nuxt/utils.ts +1 -0
- package/dist/index.cjs +181 -181
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +47 -47
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +11 -11
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/dist/{types.d-B_uo8LhA.d.cts → types.d-CFCN8diW.d.cts} +20 -4
- package/dist/{types.d-B_uo8LhA.d.ts → types.d-CFCN8diW.d.ts} +20 -4
- package/package.json +1 -1
- package/dist/chunk-IF5PESMD.js.map +0 -1
package/README.md
CHANGED
|
@@ -144,9 +144,7 @@ Help Hey API stay around for the long haul by becoming a [sponsor](https://githu
|
|
|
144
144
|
The fastest way to use `@hey-api/openapi-ts` is via npx
|
|
145
145
|
|
|
146
146
|
```sh
|
|
147
|
-
npx @hey-api/openapi-ts
|
|
148
|
-
-i https://get.heyapi.dev/hey-api/backend \
|
|
149
|
-
-o src/client
|
|
147
|
+
npx @hey-api/openapi-ts -i hey-api/backend -o src/client
|
|
150
148
|
```
|
|
151
149
|
|
|
152
150
|
Congratulations on creating your first client! 🎉 You can learn more about the generated files on the [Output](https://heyapi.dev/openapi-ts/output) page.
|
|
@@ -213,7 +211,7 @@ You can also generate output programmatically by importing `@hey-api/openapi-ts`
|
|
|
213
211
|
import { createClient } from '@hey-api/openapi-ts';
|
|
214
212
|
|
|
215
213
|
createClient({
|
|
216
|
-
input: '
|
|
214
|
+
input: 'hey-api/backend', // sign up at app.heyapi.dev
|
|
217
215
|
output: 'src/client',
|
|
218
216
|
});
|
|
219
217
|
```
|
|
@@ -228,7 +226,7 @@ createClient({
|
|
|
228
226
|
import { defineConfig } from '@hey-api/openapi-ts';
|
|
229
227
|
|
|
230
228
|
export default defineConfig({
|
|
231
|
-
input: '
|
|
229
|
+
input: 'hey-api/backend', // sign up at app.heyapi.dev
|
|
232
230
|
output: 'src/client',
|
|
233
231
|
});
|
|
234
232
|
```
|
|
@@ -238,7 +236,7 @@ export default defineConfig({
|
|
|
238
236
|
```js
|
|
239
237
|
/** @type {import('@hey-api/openapi-ts').UserConfig} */
|
|
240
238
|
module.exports = {
|
|
241
|
-
input: '
|
|
239
|
+
input: 'hey-api/backend', // sign up at app.heyapi.dev
|
|
242
240
|
output: 'src/client',
|
|
243
241
|
};
|
|
244
242
|
```
|
|
@@ -248,7 +246,7 @@ module.exports = {
|
|
|
248
246
|
```js
|
|
249
247
|
/** @type {import('@hey-api/openapi-ts').UserConfig} */
|
|
250
248
|
export default {
|
|
251
|
-
input: '
|
|
249
|
+
input: 'hey-api/backend', // sign up at app.heyapi.dev
|
|
252
250
|
output: 'src/client',
|
|
253
251
|
};
|
|
254
252
|
```
|
|
@@ -320,8 +318,10 @@ The following plugins are planned but not in development yet. You can help us pr
|
|
|
320
318
|
- [Adonis](https://heyapi.dev/openapi-ts/plugins/adonis)
|
|
321
319
|
- [Ajv](https://heyapi.dev/openapi-ts/plugins/ajv)
|
|
322
320
|
- [Arktype](https://heyapi.dev/openapi-ts/plugins/arktype)
|
|
321
|
+
- [Chance](https://heyapi.dev/openapi-ts/plugins/chance)
|
|
323
322
|
- [Express](https://heyapi.dev/openapi-ts/plugins/express)
|
|
324
323
|
- [Faker](https://heyapi.dev/openapi-ts/plugins/faker)
|
|
324
|
+
- [Falso](https://heyapi.dev/openapi-ts/plugins/falso)
|
|
325
325
|
- [Hono](https://heyapi.dev/openapi-ts/plugins/hono)
|
|
326
326
|
- [Joi](https://heyapi.dev/openapi-ts/plugins/joi)
|
|
327
327
|
- [Koa](https://heyapi.dev/openapi-ts/plugins/koa)
|