TS2775 when using arrow function for type predicate #45919
Labels
Bug
A bug in TypeScript
Domain: JSDoc
Relates to JSDoc parsing and type generation
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Help Wanted
You can do this
Milestone
Bug Report
Our shop prefers arrow function style and JSDoc annotations. I've got a type predicate that works as a function declaration but as an arrow function, I get 2775
🔎 Search Terms
🕗 Version & Regression Information
Version 4.2.3 (and whatever version the playground runs)
⏯ Playground Link
error
💻 Code
🙁 Actual behavior
🙂 Expected behavior
same as when I change the arrow function to a function declaration:
no error
The text was updated successfully, but these errors were encountered: