-
-
Notifications
You must be signed in to change notification settings - Fork 275
Open
Labels
bug π₯Something isn't workingSomething isn't workingclientClient package relatedClient package relatedjavascriptPull requests that update Javascript codePull requests that update Javascript codeneeds info β³Further information is requiredFurther information is required
Description
Description
Hi, while i generate my client i get the following errors from the generated files:
src/api/client/client/client.gen.ts:61:3 - error TS2578: Unused '@ts-expect-error' directive.
61 // @ts-expect-error
const { opts, url } = await beforeRequest(options);
~~~~~~~~~~~~~~~~~~~Reproducible example or configuration
Config
import { defineConfig } from '@hey-api/openapi-ts';
export default defineConfig({
input: './scripts/openapi-spec.json',
output: { format: 'prettier', lint: 'eslint', path: './src/api/client', importFileExtension: '.js' },
plugins: [
'@hey-api/schemas',
{
name: '@hey-api/typescript',
topType: "any",
enums: {
case: 'preserve',
enabled: true,
mode: 'typescript'
}
},
{
name: '@hey-api/sdk',
asClass: true,
responseStyle: 'data',
paramsStructure: 'flat',
classNameBuilder: (name) => `${name}Service`
}
]
});OpenAPI specification (optional)
No response
System information (optional)
Node: v24.11.0
typescript: 5.9.3
@hey-api/openapi-ts: 0.87.3
nilscox
Metadata
Metadata
Assignees
Labels
bug π₯Something isn't workingSomething isn't workingclientClient package relatedClient package relatedjavascriptPull requests that update Javascript codePull requests that update Javascript codeneeds info β³Further information is requiredFurther information is required