TypeScript/tests/cases/fourslash/annotateWithTypeFromJSDoc16.ts
2017-10-11 13:34:16 -07:00

10 lines
444 B
TypeScript

/// <reference path='fourslash.ts' />
// @strict: true
/////** @type {function(*, ...number, ...boolean): void} */
////var /*1*/x = (x, ys, ...zs) => { };
verify.applicableRefactorAvailableAtMarker('1');
verify.fileAfterApplyingRefactorAtMarker('1',
`/** @type {function(*, ...number, ...boolean): void} */
var x: (arg0: any, arg1: number[], ...rest: boolean[]) => void = (x, ys, ...zs) => { };`, 'Annotate with type from JSDoc', 'annotate');