-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[BUGFIX] missing modules docs for tryInvoke, compare, isEqual #16079 #16080
[BUGFIX] missing modules docs for tryInvoke, compare, isEqual #16079 #16080
Conversation
The test suite passes locally. CI fails at yarn install. |
I added missing |
@@ -30,7 +33,7 @@ | |||
``` | |||
|
|||
@method isEqual |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also needs an @static
to show up as a function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
@@ -72,7 +76,7 @@ function spaceship(a, b) { | |||
``` | |||
|
|||
@method compare |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs an @static
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
packages/ember-utils/lib/invoke.js
Outdated
@@ -12,7 +15,7 @@ import applyStr from './apply-str'; | |||
``` | |||
|
|||
@method canInvoke |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@static
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed my changes to canInvoke - turns out it's not a package/module which makes sense because it is private API
@@ -35,7 +38,7 @@ export function canInvoke(obj, methodName) { | |||
``` | |||
|
|||
@method tryInvoke |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@static
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
Thanks, I'll get those changes made |
@toddjordan I added static to everything and double-checked that these methods are actually available in the utils module/package. |
Tried it out. Looks good! Thanks @jenweber !!! |
See #16079. This should target at least 2.18 LTS candidate and 3.0-beta. 2.16 LTS would be good too. I have no idea how any of that is done so let me know if I need to open more PRs against other branches.
Needs a good look by @toddjordan
Thank you to sukima for reporting!