Skip to content

Commit

Permalink
Tighten types related to element attribute modification.
Browse files Browse the repository at this point in the history
Part of #9876
  • Loading branch information
cramforce committed Jun 22, 2017
1 parent faf9745 commit 5343a79
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extensions/amp-call-tracking/0.1/amp-call-tracking.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ let cachedResponsePromises_ = {};
* Fetches vendor response.
* @param {!Window} win
* @param {!string} url
* @return {!Promise<Object>}
* @return {!Promise<JsonObject>}
*/
function fetch_(win, url) {
if (!(url in cachedResponsePromises_)) {
Expand Down
2 changes: 1 addition & 1 deletion src/base-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ export class BaseElement {
* @note Boolean attributes have a value of `true` and `false` when
* present and missing, respectively.
* @param {
* !Object<string, (null|boolean|string|number|Array|Object)>
* !JsonObject<string, (null|boolean|string|number|Array|Object)>
* } unusedMutations
*/
mutatedAttributesCallback(unusedMutations) {
Expand Down
2 changes: 1 addition & 1 deletion src/custom-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,7 @@ function createBaseCustomElementClass(win) {
* @note Boolean attributes have a value of `true` and `false` when
* present and missing, respectively.
* @param {
* !Object<string, (null|boolean|string|number|Array|Object)>
* !JsonObject<string, (null|boolean|string|number|Array|Object)>
* } mutations
*/
mutatedAttributesCallback(mutations) {
Expand Down
2 changes: 1 addition & 1 deletion src/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export function copyChildren(from, to) {
/**
* Add attributes to an element.
* @param {!Element} element
* @param {!Object<string, string>} attributes
* @param {!JsonObject<string, string>} attributes
* @return {!Element} created element
*/
export function addAttributesToElement(element, attributes) {
Expand Down

0 comments on commit 5343a79

Please sign in to comment.