github hey-api/openapi-ts @hey-api/openapi-ts@0.64.0

latest releases: @hey-api/openapi-ts@0.83.1, @hey-api/codegen-core@0.1.0, @hey-api/openapi-ts@0.83.0...
7 months ago

Minor Changes

  • #1661 ccefe43 Thanks @mrlubos! - feat: added client.baseUrl option

    Added client.baseUrl option

    You 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 to false.

    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 generic

    Added ClientOptions interface

    The Config interface now accepts an optional generic extending ClientOptions instead of boolean type ThrowOnError.

    type Foo = Config<false>; // [!code --]
    type Foo = Config<{ throwOnError: false }>; // [!code ++]

Don't miss a new openapi-ts release

NewReleases is sending notifications on new releases.