-
-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Types are not enforced with typescript 5.5.3
#1749
Comments
Upgraded to typescript |
I'm not able to repro with 5.5.3. I see:
|
I just tested again with the latest version of I also added the |
Even with your tsconfig.json, I still can't repro... I'm using same versions of everything. Can you make a docker image that repros issue, or perhaps a github repo that repros issue in github actions? Note my dev environment is Linux. Are you on Windows or Linux? |
I was struggling with this in a test node 20 project using @tsconfig/node20 tsconfig.json I found if I deleted the entire |
I am on Windows 11 Pro 22H2 using Node v20.10.0. Attached is my repo - |
I am running into the same issue. Multipackage repo. Upgraded to typescript 5.5.4 and some valid type errors on arguments to calls of the |
FYI: openapi-fetch v0.10.4 includes the fix |
Description
types are not enforced with typescript
5.5.3
Reproduction
src/repro.ts
tsconfig
tsconfig.json
Expected result
npx tsc --noEmit
should result in something along the lines of:This does work as expected with typescript
5.4.5
. If you runnpx tsc --noEmit
with typescript5.5.3
no error is reported (which should not be the case).I saw that the project dependency on typescript is still on the
5.4
release. I am assuming there is some incompatibility with typescript 5.5 and this is one of the symptoms.I took a quick look at the changed in TS 5.5 and found
Control Flow Narrowing for Constant Indexed Accesses
. I thought this might be related but it is just a gut feeling.Checklist
Thanks for the great work ❤️
The text was updated successfully, but these errors were encountered: