openapi-ts
openapi-ts copied to clipboard
Default export of the module has or is using private name 'ClientConfig'.
Description
When following the documentation I get a type error with the following code block:
import { defineConfig } from '@hey-api/openapi-ts';
export default defineConfig({
input: 'path/to/openapi.json',
output: 'src/client',
});
Default export of the module has or is using private name 'ClientConfig'.
It seems that only the type UserConfig
is exported, however because type UserConfig = ClientConfig;
the type ClientConfig
is expected and this is a private interface.
OpenAPI specification (optional)
No response
Configuration
No response
System information (optional)
tsconfig
"compilerOptions": {
"rootDir": ".",
"sourceMap": true,
"declaration": false,
"strict": true,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "es2015",
"module": "esnext",
"lib": ["es2020", "dom"],
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"baseUrl": "."
}
typescript: 5.3.3