Skip to content

JSDoc implements space sensetiveΒ #60592

Open
@VanillaMaster

Description

πŸ”Ž Search Terms

JSDoc
implements
space
'}' expected

πŸ•— Version & Regression Information

This is the behavior in every version I tried

⏯ Playground Link

https://www.typescriptlang.org/play/?jsx=0&module=0&ts=5.5.4&filetype=js#code/PQKhCgAIUgBAXAngBwKYBNUDNIG8+RYD2RAXJAM7wBOAlgHYDmkAvq5AGIlQjDigRocWgFtkAG1QjU9eBQJci7YMEgAeALQbIAchY7IqAB5oAxvAwA6Hn1PiAhhXkAhe9TxRIX4koC8kACIAFgAmAIBucBYgA

πŸ’» Code

/**
 * @typedef { { foo: string } } Foo
 */
/**
 * @implements { Foo } // <-- '}' expected.
 */
class Bar {
    foo = "42";
}

πŸ™ Actual behavior

'}' expected

πŸ™‚ Expected behavior

alow using whitespaces like in every other jsdoc tag

Additional information about the issue

No response

Metadata

Assignees

Labels

Domain: JSDocRelates to JSDoc parsing and type generationNeeds InvestigationThis issue needs a team member to investigate its status.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions