Releases: hey-api/openapi-ts
@hey-api/[email protected]
@hey-api/[email protected]
@hey-api/[email protected]
@hey-api/[email protected]
@hey-api/[email protected]
@hey-api/[email protected]
Minor Changes
-
#1661
ccefe43
Thanks @mrlubos! - feat: addedclient.baseUrl
optionAdded
client.baseUrl
optionYou can use this option to configure the default base URL for the generated client. By default, we will attempt to resolve the first defined server or infer the base URL from the input path. If you'd like to preserve the previous behavior, set
baseUrl
tofalse
.export default { input: 'path/to/openapi.json', output: 'src/client', plugins: [ { baseUrl: false, // [!code ++] name: '@hey-api/client-fetch', }, ], };
-
#1661
bb6d46a
Thanks @mrlubos! - fix: make createConfig, CreateClientConfig, and Config accept ClientOptions genericAdded
ClientOptions
interfaceThe
Config
interface now accepts an optional generic extendingClientOptions
instead ofboolean
typeThrowOnError
.type Foo = Config<false>; // [!code --] type Foo = Config<{ throwOnError: false }>; // [!code ++]
@hey-api/[email protected]
Minor Changes
-
#1661
bb6d46a
Thanks @mrlubos! - fix: make createConfig, CreateClientConfig, and Config accept ClientOptions genericAdded
ClientOptions
interfaceThe
Config
interface now accepts an optional generic extendingClientOptions
instead ofboolean
typeThrowOnError
.type Foo = Config<false>; // [!code --] type Foo = Config<{ throwOnError: false }>; // [!code ++]
@hey-api/[email protected]
Minor Changes
-
#1661
bb6d46a
Thanks @mrlubos! - fix: make createConfig, CreateClientConfig, and Config accept ClientOptions genericAdded
ClientOptions
interfaceThe
Config
interface now accepts an optional generic extendingClientOptions
instead ofboolean
typeThrowOnError
.type Foo = Config<false>; // [!code --] type Foo = Config<{ throwOnError: false }>; // [!code ++]
@hey-api/[email protected]
Minor Changes
-
#1661
bb6d46a
Thanks @mrlubos! - fix: make createConfig, CreateClientConfig, and Config accept ClientOptions genericAdded
ClientOptions
interfaceThe
Config
interface now accepts an optional generic extendingClientOptions
instead ofboolean
typeThrowOnError
.type Foo = Config<false>; // [!code --] type Foo = Config<{ throwOnError: false }>; // [!code ++]
@hey-api/[email protected]
Minor Changes
-
#1661
bb6d46a
Thanks @mrlubos! - fix: make createConfig, CreateClientConfig, and Config accept ClientOptions genericAdded
ClientOptions
interfaceThe
Config
interface now accepts an optional generic extendingClientOptions
instead ofboolean
typeThrowOnError
.type Foo = Config<false>; // [!code --] type Foo = Config<{ throwOnError: false }>; // [!code ++]