You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like extending the tsconfig.json file from @tsconfig/node20 is causing type errors, particularly with the second argument (options) on routes and with parameters like params, body, headers, etc., not appearing in VSCode IntelliSense. However, when you remove the lib: ["es2023"] setting, everything works as expected.
The text was updated successfully, but these errors were encountered:
javialon26
changed the title
Invalid types using [@tsconfig/node20 tsconfig.json](https://www.npmjs.com/package/@tsconfig/node20)
Invalid types using @tsconfig/node20
Aug 7, 2024
It looks like extending the tsconfig.json file from @tsconfig/node20 is causing type errors, particularly with the second argument (options) on routes and with parameters like params, body, headers, etc., not appearing in VSCode IntelliSense. However, when you remove the lib: ["es2023"] setting, everything works as expected.
Reference #1749
Packages versions:
"openapi-fetch": "^0.10.5",
"openapi-typescript": "^7.3.0",
"typescript": "^5.5.4"
Generator script:
"generate:client": "openapi-typescript https://petstore3.swagger.io/api/v3/openapi.yaml -o ./src/lib/client.d.ts",
The text was updated successfully, but these errors were encountered: