Skip to content

Multiline JSDoc Types #16179

Closed
Closed
@mjbvz

Description

@mjbvz

From microsoft/vscode#27777

Issue
For the javascript:

/**
 * @param {{
 *  z: number
 * }} x
 */
function foo(x){}

The type of x is any. It seems multiline types are not recognized in jsdocs

There seems to be some debate about whether this is supported or not: jscs-dev/node-jscs#245 but it seems closure and some other tools support the multiline syntax

Also tracking syntax highlighting for this case here: microsoft/TypeScript-TmLanguage#467

Metadata

Metadata

Assignees

Labels

Domain: JSDocRelates to JSDoc parsing and type generationFixedA PR has been merged for this issueIn DiscussionNot yet reached consensusSuggestionAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions