@hey-api/openapi-ts
Advanced tools
Comparing version 0.49.0 to 0.50.0
@@ -243,3 +243,3 @@ interface Dictionary<T = unknown> { | ||
interface Client { | ||
interface Client$1 { | ||
models: Model[]; | ||
@@ -266,2 +266,3 @@ server: string; | ||
type Client = '@hey-api/client-axios' | '@hey-api/client-fetch' | 'angular' | 'axios' | 'fetch' | 'node' | 'xhr'; | ||
interface ClientConfig { | ||
@@ -277,3 +278,19 @@ /** | ||
*/ | ||
client?: '@hey-api/client-axios' | '@hey-api/client-fetch' | 'angular' | 'axios' | 'fetch' | 'node' | 'xhr'; | ||
client?: Client | { | ||
/** | ||
* Bundle the client module? Set this to true if you're using a standalone | ||
* client package and don't want to declare it as a separate dependency. | ||
* When true, the client module will be generated from the standalone | ||
* package and bundled with the rest of the generated output. This is | ||
* useful if you're repackaging the output, publishing it to other users, | ||
* and you don't want them to install any dependencies. | ||
* @default false | ||
*/ | ||
bundle?: boolean; | ||
/** | ||
* HTTP client to generate | ||
* @default 'fetch' | ||
*/ | ||
name: Client; | ||
}; | ||
/** | ||
@@ -464,3 +481,3 @@ * Path to the config file. Set this value if you don't use the default | ||
*/ | ||
declare function createClient(userConfig: UserConfig): Promise<Client[]>; | ||
declare function createClient(userConfig: UserConfig): Promise<Client$1[]>; | ||
/** | ||
@@ -467,0 +484,0 @@ * Type helper for openapi-ts.config.ts, returns {@link UserConfig} object |
{ | ||
"name": "@hey-api/openapi-ts", | ||
"version": "0.49.0", | ||
"version": "0.50.0", | ||
"type": "module", | ||
@@ -81,3 +81,4 @@ "description": "Turn your OpenAPI specification into a beautiful TypeScript client", | ||
"tslib": "2.6.3", | ||
"typescript": "5.5.3" | ||
"typescript": "5.5.3", | ||
"@hey-api/client-fetch": "0.1.11" | ||
}, | ||
@@ -84,0 +85,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
194087
1209
28