Skip to content

Commit 774435e

Browse files
authored
Merge pull request #2535 from alexedme/feat/client-type-export
2 parents 7bc132f + efdeedc commit 774435e

File tree

7 files changed

+15
-0
lines changed

7 files changed

+15
-0
lines changed

.changeset/ninety-glasses-rule.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@hey-api/openapi-ts': patch
3+
---
4+
5+
feat(client): added angular, axios, fetch, next & nuxt client type export for external typing purposes.

packages/openapi-ts/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,17 @@ export type {
118118
OpenApiResponseObject,
119119
OpenApiSchemaObject,
120120
} from './openApi/types';
121+
export type { AngularClient } from './plugins/@hey-api/client-angular';
122+
export type { AxiosClient } from './plugins/@hey-api/client-axios';
121123
export {
122124
clientDefaultConfig,
123125
clientDefaultMeta,
124126
} from './plugins/@hey-api/client-core/config';
125127
export { clientPluginHandler } from './plugins/@hey-api/client-core/plugin';
126128
export type { Client } from './plugins/@hey-api/client-core/types';
129+
export type { FetchClient } from './plugins/@hey-api/client-fetch';
130+
export type { NextClient } from './plugins/@hey-api/client-next';
131+
export type { NuxtClient } from './plugins/@hey-api/client-nuxt';
127132
export type { ExpressionTransformer } from './plugins/@hey-api/transformers/expressions';
128133
export type { TypeTransformer } from './plugins/@hey-api/transformers/types';
129134
export { definePluginConfig } from './plugins/shared/utils/config';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
export type { Client as AngularClient } from './bundle/types';
12
export { defaultConfig, defineConfig } from './config';
23
export type { HeyApiClientAngularPlugin } from './types';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
export type { Client as AxiosClient } from './bundle/types';
12
export { defaultConfig, defineConfig } from './config';
23
export type { HeyApiClientAxiosPlugin } from './types';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
export type { Client as FetchClient } from './bundle/types';
12
export { defaultConfig, defineConfig } from './config';
23
export type { HeyApiClientFetchPlugin } from './types';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
export type { Client as NextClient } from './bundle/types';
12
export { defaultConfig, defineConfig } from './config';
23
export type { HeyApiClientNextPlugin } from './types';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
export type { Client as NuxtClient } from './bundle/types';
12
export { defaultConfig, defineConfig } from './config';
23
export type { HeyApiClientNuxtPlugin } from './types';

0 commit comments

Comments
 (0)