15 lines
251 B
TypeScript
15 lines
251 B
TypeScript
|
/// <reference path='fourslash.ts' />
|
||
|
|
||
|
// @strict: true
|
||
|
|
||
|
//// class T {
|
||
|
//// a: string;
|
||
|
//// }
|
||
|
|
||
|
verify.codeFix({
|
||
|
description: `Add 'undefined' type to property 'a'`,
|
||
|
newFileContent: `class T {
|
||
|
a: string | undefined;
|
||
|
}`,
|
||
|
index: 0
|
||
|
})
|