Skip to content

Commit

Permalink
fix some types (ampproject#35832)
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyajones authored and Mahir committed Sep 9, 2021
1 parent b3631b8 commit c06b9ca
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions build-system/server/app-index/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ const PanelSelectorButton = ({expression, type, value}) =>
</button>
`;

/**
* @param {{
* children: string[],
* compact?: boolean,
* key: string,
* name?: null | string,
* }} param0
* @return {string}
*/
const PanelSelector = ({children, compact = false, key, name = null}) => html`
<amp-selector
layout="container"
Expand Down
4 changes: 3 additions & 1 deletion build-system/tasks/e2e/expect.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ function overwriteAlwaysUseSuper(utils) {
}
};

const resultPromise = waitForValue(valueSatisfiesExpectation);
const resultPromise = /** @type {(arg: *) => Promise<*>} */ (
waitForValue
)(valueSatisfiesExpectation);
flag(that, 'object', resultPromise);
return resultPromise;
};
Expand Down

0 comments on commit c06b9ca

Please sign in to comment.