Not TS 6 compliant
https://github.com/openapi-ts/openapi-typescript/blob/e9d3c687972439650202f94f48cffc431d428080/packages/openapi-typescript/package.json#L61-L63
npm i -D openapi-typescript typescript@next
npm warn Could not resolve dependency:
npm warn peer typescript@"^5.x" from [email protected]
Since openapi-typescript is now in maintenance mode, this is fixed in openapi-typesafe, a maintained fork of openapi-typescript, openapi-fetch and openapi-react-query: TypeScript 6 is supported (CI tests TypeScript 5.4, 5.9, 6.0, 7.0 and the 7.1 beta). Apart from fixes like this one, the CLI flags, Node API and output match openapi-typescript 7.13, and npx openapi-typesafe-migrate --write moves a project over. https://github.com/openapi-typesafe/openapi-typesafe
The 1.0 release candidate is on npm: npm i -D openapi-typesafe@next.