Skip to content

JSDoc Function quickInfo shows {} #15825

@ghost

Description

TypeScript Version: nightly (2.4.0-dev.20170513)

Code

// @ts-check
/** @type {Function} */
const x = (a) => a + 1;
x(1);

Expected behavior:

Quick-info for x should show Function.

Actual behavior:

Quick-info for x shows {}.
But the program does not compile if I use @type {{}},

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generation

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions