englercj / tsd-jsdoc

Compiles JSDoc annotated JavaScript into a Typescript Definition file (.d.ts)
MIT License
315 stars 42 forks source link

Support for Arrow Functions #67

Open ibbignerd opened 5 years ago

ibbignerd commented 5 years ago

Currently, arrow functions expressions are interpreted as var.

export const myFunc = () => {} turns into declare var myFunc : any; when it should resolve to declare function myFunc (): void;

englercj commented 5 years ago

PRs welcome!