Open alainfonhof opened 3 weeks ago
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.
UserConfig
type UserConfig = ClientConfig;
ClientConfig
No response
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
Which package versions is this @alainfonhof?
0.46.3
Description
When following the documentation I get a type error with the following code block:
Default export of the module has or is using private name 'ClientConfig'.
It seems that only the type
UserConfig
is exported, however becausetype UserConfig = ClientConfig;
the typeClientConfig
is expected and this is a private interface.OpenAPI specification (optional)
No response
Configuration
No response
System information (optional)
tsconfig
typescript: 5.3.3