Test refactor of JSDoc @template tag

This commit is contained in:
Nathan Shively-Sanders 2017-10-12 11:40:40 -07:00
parent 123347d5c4
commit b440d75bc4
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,19 @@
/// <reference path='fourslash.ts' />
// @strict: true
/////**
//// * @template T
//// * @param {number} a
//// * @param {T} b
//// */
////function /*1*/f(a, b) {
////}
verify.applicableRefactorAvailableAtMarker('1');
verify.fileAfterApplyingRefactorAtMarker('1',
`/**
* @template T
* @param {number} a
* @param {T} b
*/
function f<T>(a: number, b: T) {
}`, 'Annotate with types from JSDoc', 'annotate');

View file

@ -0,0 +1,17 @@
/// <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) {
}`, 'Annotate with types from JSDoc', 'annotate');