2017-09-25 18:02:42 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
/////**
|
|
|
|
//// * @param {number} x - the first parameter
|
|
|
|
//// * @param {{ a: string, b: Date }} y - the most complex parameter
|
|
|
|
//// * @param z - the best parameter
|
|
|
|
//// * @param alpha - the other best parameter
|
|
|
|
//// * @param {*} beta - I have no idea how this got here
|
|
|
|
//// */
|
|
|
|
////function f(/*1*/x, /*2*/y, /*3*/z: string, /*4*/alpha, /*5*/beta) {
|
|
|
|
////}
|
|
|
|
|
|
|
|
verify.not.applicableRefactorAvailableAtMarker('3');
|
|
|
|
verify.not.applicableRefactorAvailableAtMarker('4');
|
2017-10-11 22:34:16 +02:00
|
|
|
verify.applicableRefactorAvailableAtMarker('1');
|
|
|
|
verify.fileAfterApplyingRefactorAtMarker('1',
|
2017-09-25 18:02:42 +02:00
|
|
|
`/**
|
|
|
|
* @param {number} x - the first parameter
|
|
|
|
* @param {{ a: string, b: Date }} y - the most complex parameter
|
|
|
|
* @param z - the best parameter
|
|
|
|
* @param alpha - the other best parameter
|
|
|
|
* @param {*} beta - I have no idea how this got here
|
|
|
|
*/
|
2017-10-18 22:04:13 +02:00
|
|
|
function f(x: number, y: { a: string; b: Date; }, z: string, alpha, beta: any) {
|
2017-10-18 01:35:28 +02:00
|
|
|
}`, 'Annotate with type from JSDoc', 'annotate');
|
2017-10-11 22:34:16 +02:00
|
|
|
|