-
Notifications
You must be signed in to change notification settings - Fork 601
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
[api-extractor] classify arrow functions as functions #1629
Comments
This is a good proposal. @postspectacular are you able to help implement it? |
@octogonz thank you! i can't say yet if i can help w/ that - just haven't really looked through the source yet. will keep you posted! |
FYI there's some general instructions in the Contributing doc. If you don't have time, let me know. I might be able to help, although I've been pretty busy with microsoft/tsdoc#196 this week since we're trying to roll out eslint-plugin-tsdoc in our repo. |
Would the best solution for this be to create a new I see value in a |
+1 for this issue any update for arrow function parameter? |
Hi,where are we on this issue so far? |
We need a volunteer to implement it |
this should be resolved in |
Is this a feature or a bug?
Please describe the actual behavior.
This is a feature request to classify exported arrow functions as functions rather than variables. Even though syntactically the latter is the case, semantically (for documentation & usage purposes) this doesn't make any sense - and worse - it invalidates any documentation effort in the docstrings related to parameter descriptions, return types etc.
The current behavior creates a situation where the doc toolchain implicitly discourages the use of public arrow functions. My entire mono-repo (100+ packages) is largely using arrow functions and as much as I like the API extractor approach, this current behavior is more or less a showstopper. I also can't imagine that this will bite a lot of other projects...
Related, I'd also like to propose that
const
symbols are not classified as "variable", but at least as "constant"...If for whatever reason a reclassification of arrow functions as "function" is not possible, then please consider supporting a form of
@kind
tag to allow manual classification, e.g.@kind function
, which then should override the inferred kind.What is the expected behavior?
Public, exported arrow functions in the form below are extracted & classified as functions, with all that entails.
If this is a bug, please provide the tool version, Node.js version, and OS.
The text was updated successfully, but these errors were encountered: