Packages

@hey-api/openapi-ts

0.99.0 · 22 Jun 2026MIT8.3M / weekRepositoryHomepagenpmAtom feed

Your version

0.64.0

2 Feb 2025Where it was published

0.99.0 is the newest release of 0.64.x.

In short

1 new1 fixed

Security

1 advisory affects 0.64.0; 0.97.3 fixes them

Release note

Minor Changes

  • 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`.

```js
export default {
  input: 'path/to/openapi.json',
  output: 'src/client',
  plugins: [
    {
      baseUrl: false, // [!code ++]
      name: '@hey-api/client-fetch',
    },
  ],
};
```
  • 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`.

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

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.