Steps to reproduce
// @ts-check
/// <reference lib="dom" />
let a = ''
a = 1;
Behavior with typescript@6.0
The file will be type-checked.
Behavior with tsgo
As long as any tri-slash reference directive is after the ts-check directive, the file won't be type-checked. Even if compilerOptions.checkJs is true, or if the file is a ts file. It makes ts-check actually act like ts-nocheck.
Steps to reproduce
Behavior with
typescript@6.0The file will be type-checked.
Behavior with
tsgoAs long as any tri-slash reference directive is after the ts-check directive, the file won't be type-checked. Even if
compilerOptions.checkJsis true, or if the file is a ts file. It makests-checkactually act likets-nocheck.