TypeScript/tests/cases/fourslash/codeFixDisableJsDiagnosticsInFile3.ts

15 lines
321 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts' />
// @allowjs: true
// @noEmit: true
// @checkJs: true
// @Filename: a.js
////[|var x = "";
////x = 1;|]
// Disable checking for next line
verify.rangeAfterCodeFix(`var x = "";
// @ts-ignore
x = 1;`, /*includeWhiteSpace*/ false, /*errorCode*/ undefined, /*index*/ 0);