Uh oh!
There was an error while loading. Please reload this page.
Plan item #41678 enable @ts-check - #41953
Conversation
Erich Gamma (@egamma) As Travis and AppVeyor complain, there's a problem with this. The build folder fails to build: |
João Moreno (joaomoreno)
commented
Jan 25, 2018
Erich Gamma (@egamma) Also... how exactly does |
Erich Gamma (egamma)
commented
Jan 26, 2018
The issue is that when you enable allowJS in the tsconfig.json, then TypeScript will transpile the JS files. I need to find a way to specifc |
Erich Gamma (egamma)
commented
Jan 26, 2018
I was surprised as well, but the TS type checker reaches it also when running |
João Moreno (joaomoreno)
commented
Jan 26, 2018
Here is the issue, when you want to enable I see different options:
I´ll add option 2) to the PR for testing. |
Erich Gamma (egamma)
commented
Jan 26, 2018
Hmm, .js files are still compiled so option 2 is not an option... |
I´ve looked into options 2) and 3). The issue with these options is that the project of the tsconfig.json in the /// <reference path='lib/typings/event-stream.d.ts'/>Such comments are a pain to maintain and duplicates the project context from the tsconfig.json. My conclusion is that the checkJS must use the project context defined by |
Erich Gamma (egamma)
commented
Feb 1, 2018
João Moreno (@joaomoreno) closing in favor of #42731 (this one is messy and mixes different experiments). |
No description provided.