mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Test:jsdoc codefix for variable-like declarations
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
// @strict: true
|
||||
/// <reference path='fourslash.ts' />
|
||||
//// function f(x: [|number?|]) {
|
||||
//// }
|
||||
verify.rangeAfterCodeFix("number | null", /*includeWhiteSpace*/ false, /*errorCode*/ 8020, 0);
|
||||
@@ -0,0 +1,5 @@
|
||||
// @strict: true
|
||||
/// <reference path='fourslash.ts' />
|
||||
//// var f = function f(x: [|string?|]) {
|
||||
//// }
|
||||
verify.rangeAfterCodeFix("string | null | undefined", /*includeWhiteSpace*/ false, /*errorCode*/ 8020, 1);
|
||||
@@ -0,0 +1,6 @@
|
||||
// @strict: true
|
||||
/// <reference path='fourslash.ts' />
|
||||
////class C {
|
||||
//// p: [|*|]
|
||||
////}
|
||||
verify.rangeAfterCodeFix("any", /*includeWhiteSpace*/ false, /*errorCode*/ 8020, 0);
|
||||
@@ -0,0 +1,6 @@
|
||||
// @strict: true
|
||||
/// <reference path='fourslash.ts' />
|
||||
////class C {
|
||||
//// p: [|*|] = 12
|
||||
////}
|
||||
verify.rangeAfterCodeFix("any", /*includeWhiteSpace*/ false, /*errorCode*/ 8020, 0);
|
||||
Reference in New Issue
Block a user