TypeScript/tests/cases/fourslash/annotateWithTypeFromJSDoc5.ts
2017-10-13 09:38:01 -07:00

14 lines
337 B
TypeScript

/// <reference path='fourslash.ts' />
////class C {
//// /** @type {number | null} */
//// /*1*/p = null
////}
verify.applicableRefactorAvailableAtMarker('1');
verify.fileAfterApplyingRefactorAtMarker('1',
`class C {
/** @type {number | null} */
p: number | null = null;
}`, 'Annotate with type from JSDoc', 'annotate');