-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function parsing #107
Comments
I think this should be merged into #50 . |
The typescript notation of arrow function could do the trick. I tried it on your live demo and it works. Maybe ESLint does not contains the last version of your project. I'll check that in my project. |
To my knowledge ESLint was never using |
Yes you're right this is the plugin eslint-plugin-jsdoc that use it. I checked on my project and it enclose the last version of jsdoctypeparser (5.1.1). To my surprise, the arrow function format is active in my project and works fine. I didn't realise it because I wrongly use this format (I omitted the types behind this arguments). ** confused ** Sorry for this PEBKAC !! :D |
Hi and thank you for your job !
The basic parsing of callback functions as you describe it is :
function(type1, type2, ...): returnType
This format does not allow naming of different args. Could you support this type of format :
function(var1:type1, var2:type2, ...): returnType
or the arrow function format
(var1:type1, var2:type2, ...) => returnType
As your project is used within ESLint this could be very usefull.
Thanks
The text was updated successfully, but these errors were encountered: