Files
tsgo/testdata/tests/cases/compiler/tsCheckPreservedAfterReference.ts
782245697e Preserve ts-check across reference directives (#4061)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: RyanCavanaugh <[email protected]>
Co-authored-by: Ryan Cavanaugh <[email protected]>
2026-06-02 21:00:54 +00:00

17 lines
255 B
TypeScript

// @allowJs: true
// @checkJs: true
// @noEmit: true
// @noTypesAndSymbols: true
// @filename: /checked.ts
// @ts-check
/// <reference lib="dom" />
let a = '';
a = 1;
// @filename: /checked.js
// @ts-check
/// <reference lib="dom" />
let b = '';
b = 1;