Skip to content

[JSDoc] Should we suppose ts-style for @prop (similar to @param) #16092

Closed
@yuit

Description

@yuit
// @ts-check
/**
 * @typedef {Object} Opts
 * @property {string} x
 * @property {string=} y
 * @property z {string=}
 * 
 * @param {Opts} opts
 */
function foo(opts) {}

foo({x: 'abc'});

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions