Skip to content

Commit b440d75

Browse files
committed
Test refactor of JSDoc @template tag
1 parent 123347d commit b440d75

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/// <reference path='fourslash.ts' />
2+
// @strict: true
3+
/////**
4+
//// * @template T
5+
//// * @param {number} a
6+
//// * @param {T} b
7+
//// */
8+
////function /*1*/f(a, b) {
9+
////}
10+
11+
verify.applicableRefactorAvailableAtMarker('1');
12+
verify.fileAfterApplyingRefactorAtMarker('1',
13+
`/**
14+
* @template T
15+
* @param {number} a
16+
* @param {T} b
17+
*/
18+
function f<T>(a: number, b: T) {
19+
}`, 'Annotate with types from JSDoc', 'annotate');
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/// <reference path='fourslash.ts' />
2+
// @strict: true
3+
/////**
4+
//// * @param {number} a
5+
//// * @param {T} b
6+
//// */
7+
////function /*1*/f<T>(a, b) {
8+
////}
9+
10+
verify.applicableRefactorAvailableAtMarker('1');
11+
verify.fileAfterApplyingRefactorAtMarker('1',
12+
`/**
13+
* @param {number} a
14+
* @param {T} b
15+
*/
16+
function f<T>(a: number, b: T) {
17+
}`, 'Annotate with types from JSDoc', 'annotate');

0 commit comments

Comments
 (0)