@hey-api/openapi-ts 0.98.0 → 0.98.2
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 +12 -0
- package/dist/clients/angular/client.ts +1 -1
- package/dist/clients/angular/index.ts +1 -0
- package/dist/clients/axios/index.ts +1 -0
- package/dist/clients/core/types.ts +6 -0
- package/dist/clients/fetch/index.ts +1 -0
- package/dist/clients/ky/index.ts +1 -0
- package/dist/clients/next/index.ts +1 -0
- package/dist/clients/nuxt/index.ts +1 -0
- package/dist/clients/ofetch/index.ts +1 -0
- package/dist/index.d.mts +177 -141
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{init-BENFi6V7.mjs → init-6HtXdMiq.mjs} +224 -150
- package/dist/init-6HtXdMiq.mjs.map +1 -0
- package/dist/internal.mjs +1 -1
- package/dist/run.mjs +2 -2
- package/dist/run.mjs.map +1 -1
- package/dist/{src-BXIUXBF6.mjs → src-CY0O0cwg.mjs} +6 -6
- package/dist/src-CY0O0cwg.mjs.map +1 -0
- package/package.json +5 -6
- package/dist/init-BENFi6V7.mjs.map +0 -1
- package/dist/src-BXIUXBF6.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -131,6 +131,18 @@ Partners behind the future of API tooling. [Become a sponsor](https://github.com
|
|
|
131
131
|
fastapi.tiangolo.com
|
|
132
132
|
</a>
|
|
133
133
|
</td>
|
|
134
|
+
<td align="center" width="172px">
|
|
135
|
+
<a href="https://kutt.to/yZVkdV" target="_blank">
|
|
136
|
+
<picture height="40px">
|
|
137
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/assets/brands/unblocked/logo-light.svg">
|
|
138
|
+
<img alt="Unblocked logo" height="40px" src="https://heyapi.dev/assets/brands/unblocked/logo-dark.svg">
|
|
139
|
+
</picture>
|
|
140
|
+
</a>
|
|
141
|
+
<br/>
|
|
142
|
+
<a href="https://kutt.to/yZVkdV" style="text-decoration:none;" target="_blank">
|
|
143
|
+
getunblocked.com
|
|
144
|
+
</a>
|
|
145
|
+
</td>
|
|
134
146
|
</tr>
|
|
135
147
|
</tbody>
|
|
136
148
|
</table>
|
|
@@ -82,7 +82,7 @@ export const createClient = (config: Config = {}): Client => {
|
|
|
82
82
|
|
|
83
83
|
// remove Content-Type header if body is empty to avoid sending invalid requests
|
|
84
84
|
if (opts.body === undefined || opts.serializedBody === '') {
|
|
85
|
-
opts.headers.delete('Content-Type');
|
|
85
|
+
opts.headers = opts.headers.delete('Content-Type');
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
const url = buildUrl(opts as Config & RequestOptions);
|
|
@@ -8,6 +8,7 @@ export {
|
|
|
8
8
|
export { buildClientParams } from '../core/params';
|
|
9
9
|
export { serializeQueryKeyValue } from '../core/queryKeySerializer';
|
|
10
10
|
export type { ServerSentEventsResult } from '../core/serverSentEvents';
|
|
11
|
+
export type { ClientMeta } from '../core/types';
|
|
11
12
|
export { createClient } from './client';
|
|
12
13
|
export type {
|
|
13
14
|
Client,
|
|
@@ -8,6 +8,7 @@ export {
|
|
|
8
8
|
export { buildClientParams } from '../core/params';
|
|
9
9
|
export { serializeQueryKeyValue } from '../core/queryKeySerializer';
|
|
10
10
|
export type { ServerSentEventsResult } from '../core/serverSentEvents';
|
|
11
|
+
export type { ClientMeta } from '../core/types';
|
|
11
12
|
export { createClient } from './client';
|
|
12
13
|
export type {
|
|
13
14
|
Client,
|
|
@@ -89,6 +89,12 @@ export interface Config {
|
|
|
89
89
|
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
/**
|
|
93
|
+
* Arbitrary metadata passed through the `meta` request option.
|
|
94
|
+
*/
|
|
95
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
96
|
+
export interface ClientMeta {}
|
|
97
|
+
|
|
92
98
|
type IsExactlyNeverOrNeverUndefined<T> = [T] extends [never]
|
|
93
99
|
? true
|
|
94
100
|
: [T] extends [never | undefined]
|
|
@@ -8,6 +8,7 @@ export {
|
|
|
8
8
|
export { buildClientParams } from '../core/params';
|
|
9
9
|
export { serializeQueryKeyValue } from '../core/queryKeySerializer';
|
|
10
10
|
export type { ServerSentEventsResult } from '../core/serverSentEvents';
|
|
11
|
+
export type { ClientMeta } from '../core/types';
|
|
11
12
|
export { createClient } from './client';
|
|
12
13
|
export type {
|
|
13
14
|
Client,
|
package/dist/clients/ky/index.ts
CHANGED
|
@@ -8,6 +8,7 @@ export {
|
|
|
8
8
|
export { buildClientParams } from '../core/params';
|
|
9
9
|
export { serializeQueryKeyValue } from '../core/queryKeySerializer';
|
|
10
10
|
export type { ServerSentEventsResult } from '../core/serverSentEvents';
|
|
11
|
+
export type { ClientMeta } from '../core/types';
|
|
11
12
|
export { createClient } from './client';
|
|
12
13
|
export type {
|
|
13
14
|
Client,
|
|
@@ -8,6 +8,7 @@ export {
|
|
|
8
8
|
export { buildClientParams } from '../core/params';
|
|
9
9
|
export { serializeQueryKeyValue } from '../core/queryKeySerializer';
|
|
10
10
|
export type { ServerSentEventsResult } from '../core/serverSentEvents';
|
|
11
|
+
export type { ClientMeta } from '../core/types';
|
|
11
12
|
export { createClient } from './client';
|
|
12
13
|
export type {
|
|
13
14
|
Client,
|
|
@@ -8,6 +8,7 @@ export {
|
|
|
8
8
|
export { buildClientParams } from '../core/params';
|
|
9
9
|
export { serializeQueryKeyValue } from '../core/queryKeySerializer';
|
|
10
10
|
export type { ServerSentEventsResult } from '../core/serverSentEvents';
|
|
11
|
+
export type { ClientMeta } from '../core/types';
|
|
11
12
|
export { createClient } from './client';
|
|
12
13
|
export type {
|
|
13
14
|
Client,
|
|
@@ -8,6 +8,7 @@ export {
|
|
|
8
8
|
export { buildClientParams } from '../core/params';
|
|
9
9
|
export { serializeQueryKeyValue } from '../core/queryKeySerializer';
|
|
10
10
|
export type { ServerSentEventsResult } from '../core/serverSentEvents';
|
|
11
|
+
export type { ClientMeta } from '../core/types';
|
|
11
12
|
export { createClient } from './client';
|
|
12
13
|
export type {
|
|
13
14
|
Client,
|