I'm trying to convert an existing codebase from flowtype to typescript, but VS Code will not report type errors in .ts
files as expected.
Running tsc
works as expected:
typescript
and tslint
as npm devDependencies
.<root>/tsconfig.json
file.<root>/frontend/ts-example.ts
with types that should fail very badly."typescript.validate.enable": true
to my settings.json
but it complained that was an unsupported setting.What could I be missing here?
Welp, uh...
I had the "TypeScript and JavaScript Language Features" extension disabled in my workspace.
Yep, that'll do it...
In case anyone in the future is as stupid as I am, check: VS Code Extensions > Disabled.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.