Skip to content

Commit

Permalink
add correct return type for querySelectorAll (#5034)
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j authored and aomarks committed Jan 10, 2018
1 parent 98b5aad commit 6ab5c4a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/legacy/polymer.dom.html
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@
/**
* @function
* @param {string} selector
* @return {!NodeList}
* @return {!NodeList<!Element>}
*/
Polymer.DomApi.prototype.querySelectorAll;

Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"devDependencies": {
"@polymer/gen-closure-declarations": "^0.4.0",
"@polymer/gen-typescript-declarations": "^0.3.5",
"@polymer/gen-typescript-declarations": "^0.3.6",
"@webcomponents/shadycss": "^1.1.0",
"@webcomponents/webcomponentsjs": "^1.0.22",
"babel-preset-minify": "^0.2.0",
Expand Down
2 changes: 1 addition & 1 deletion types/lib/legacy/polymer.dom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ declare namespace Polymer {
setAttribute(name: string, value: string): void;
removeAttribute(name: string): void;
querySelector(selector: string): Element|null;
querySelectorAll(selector: string): NodeList;
querySelectorAll(selector: string): NodeListOf<Element>;
}


Expand Down

0 comments on commit 6ab5c4a

Please sign in to comment.