2017-09-28 20:40:56 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
// @strict: true
|
|
|
|
/////** @type {function(*, ...number, ...boolean): void} */
|
2018-04-05 21:33:00 +02:00
|
|
|
////var x = (x, ys, ...zs) => { x; ys; zs; };
|
2017-09-28 20:40:56 +02:00
|
|
|
|
2018-03-06 16:49:21 +01:00
|
|
|
verify.codeFix({
|
2018-12-04 18:03:08 +01:00
|
|
|
index: 3,
|
2018-03-06 16:49:21 +01:00
|
|
|
description: "Annotate with type from JSDoc",
|
|
|
|
newFileContent:
|
2017-09-28 20:40:56 +02:00
|
|
|
`/** @type {function(*, ...number, ...boolean): void} */
|
2018-04-05 21:33:00 +02:00
|
|
|
var x: (arg0: any, arg1: number[], ...rest: boolean[]) => void = (x, ys, ...zs) => { x; ys; zs; };`,
|
2018-03-06 16:49:21 +01:00
|
|
|
});
|