* add support of add undefined type to propertyDeclaration * add support of add Definite Assignment Assertions to propertyDeclaration * add support of add Initializer to propertyDeclaration * remove useless parameter * fix PropertyDeclaration emit missing exclamationToken * merge fixes and fix * fix unnecessary type assert
15 lines
No EOL
242 B
TypeScript
15 lines
No EOL
242 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @strict: true
|
|
|
|
//// class T {
|
|
//// a: "a" | 2;
|
|
//// }
|
|
|
|
verify.codeFix({
|
|
description: `Add initializer to property 'a'`,
|
|
newFileContent: `class T {
|
|
a: "a" | 2 = "a";
|
|
}`,
|
|
index: 2
|
|
}) |