diff --git a/.changeset/ninety-glasses-rule.md b/.changeset/ninety-glasses-rule.md new file mode 100644 index 0000000000..d3a07ad8fa --- /dev/null +++ b/.changeset/ninety-glasses-rule.md @@ -0,0 +1,5 @@ +--- +'@hey-api/openapi-ts': patch +--- + +feat(client): added angular, axios, fetch, next & nuxt client type export for external typing purposes. diff --git a/packages/openapi-ts/src/index.ts b/packages/openapi-ts/src/index.ts index 215005f0f7..face419d9a 100644 --- a/packages/openapi-ts/src/index.ts +++ b/packages/openapi-ts/src/index.ts @@ -118,12 +118,17 @@ export type { OpenApiResponseObject, OpenApiSchemaObject, } from './openApi/types'; +export type { AngularClient } from './plugins/@hey-api/client-angular'; +export type { AxiosClient } from './plugins/@hey-api/client-axios'; export { clientDefaultConfig, clientDefaultMeta, } from './plugins/@hey-api/client-core/config'; export { clientPluginHandler } from './plugins/@hey-api/client-core/plugin'; export type { Client } from './plugins/@hey-api/client-core/types'; +export type { FetchClient } from './plugins/@hey-api/client-fetch'; +export type { NextClient } from './plugins/@hey-api/client-next'; +export type { NuxtClient } from './plugins/@hey-api/client-nuxt'; export type { ExpressionTransformer } from './plugins/@hey-api/transformers/expressions'; export type { TypeTransformer } from './plugins/@hey-api/transformers/types'; export { definePluginConfig } from './plugins/shared/utils/config'; diff --git a/packages/openapi-ts/src/plugins/@hey-api/client-angular/index.ts b/packages/openapi-ts/src/plugins/@hey-api/client-angular/index.ts index 128c0ce790..d9ae18f5bd 100644 --- a/packages/openapi-ts/src/plugins/@hey-api/client-angular/index.ts +++ b/packages/openapi-ts/src/plugins/@hey-api/client-angular/index.ts @@ -1,2 +1,3 @@ +export type { Client as AngularClient } from './bundle/types'; export { defaultConfig, defineConfig } from './config'; export type { HeyApiClientAngularPlugin } from './types'; diff --git a/packages/openapi-ts/src/plugins/@hey-api/client-axios/index.ts b/packages/openapi-ts/src/plugins/@hey-api/client-axios/index.ts index 67741cb912..7360c70863 100644 --- a/packages/openapi-ts/src/plugins/@hey-api/client-axios/index.ts +++ b/packages/openapi-ts/src/plugins/@hey-api/client-axios/index.ts @@ -1,2 +1,3 @@ +export type { Client as AxiosClient } from './bundle/types'; export { defaultConfig, defineConfig } from './config'; export type { HeyApiClientAxiosPlugin } from './types'; diff --git a/packages/openapi-ts/src/plugins/@hey-api/client-fetch/index.ts b/packages/openapi-ts/src/plugins/@hey-api/client-fetch/index.ts index e30e3b3031..d98860ba30 100644 --- a/packages/openapi-ts/src/plugins/@hey-api/client-fetch/index.ts +++ b/packages/openapi-ts/src/plugins/@hey-api/client-fetch/index.ts @@ -1,2 +1,3 @@ +export type { Client as FetchClient } from './bundle/types'; export { defaultConfig, defineConfig } from './config'; export type { HeyApiClientFetchPlugin } from './types'; diff --git a/packages/openapi-ts/src/plugins/@hey-api/client-next/index.ts b/packages/openapi-ts/src/plugins/@hey-api/client-next/index.ts index e9b459a738..13cb4bb67c 100644 --- a/packages/openapi-ts/src/plugins/@hey-api/client-next/index.ts +++ b/packages/openapi-ts/src/plugins/@hey-api/client-next/index.ts @@ -1,2 +1,3 @@ +export type { Client as NextClient } from './bundle/types'; export { defaultConfig, defineConfig } from './config'; export type { HeyApiClientNextPlugin } from './types'; diff --git a/packages/openapi-ts/src/plugins/@hey-api/client-nuxt/index.ts b/packages/openapi-ts/src/plugins/@hey-api/client-nuxt/index.ts index a8843785e6..c5f3c0f013 100644 --- a/packages/openapi-ts/src/plugins/@hey-api/client-nuxt/index.ts +++ b/packages/openapi-ts/src/plugins/@hey-api/client-nuxt/index.ts @@ -1,2 +1,3 @@ +export type { Client as NuxtClient } from './bundle/types'; export { defaultConfig, defineConfig } from './config'; export type { HeyApiClientNuxtPlugin } from './types';