TypeScript/tests/cases/fourslash/annotateWithTypeFromJSDoc20.ts

18 lines
378 B
TypeScript
Raw Normal View History

2017-10-12 20:40:40 +02:00
/// <reference path='fourslash.ts' />
// @strict: true
/////**
//// * @param {number} a
//// * @param {T} b
//// */
////function /*1*/f<T>(a, b) {
////}
verify.applicableRefactorAvailableAtMarker('1');
verify.fileAfterApplyingRefactorAtMarker('1',
`/**
* @param {number} a
* @param {T} b
*/
function f<T>(a: number, b: T) {
2017-10-18 01:35:28 +02:00
}`, 'Annotate with type from JSDoc', 'annotate');