-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Annotate Function declarations using lowercase 'function' instead of 'Function' #1275
Comments
Hi @camelburrito, I am looking into this bug. So I will update the JS docs for the file in the AMP project. Other than the third_party folder, are there any other folders I should make sure to avoid touching? |
You would be only modifying code annotation (JS docs), so you can touch anything. When you are done run |
this was fixed accordingly to the PR. |
difference between {function()} and {Function}. The latter is an instance type and is nullable by default. function(...) should be used instead of Function whenever possible because it provides more type information about its parameters and return value.
unless we do
var x = new Function(), we should always use lowercase 'functions' in typedefs and annotations.
The text was updated successfully, but these errors were encountered: