Skip to content

Commit d50bb0e

Browse files
author
Sepand Parhami
committed
Fix a couple of types.
1 parent 7a4a1df commit d50bb0e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/testing/animation-test-controller.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ const createStopperStyle = function(): HTMLStyleElement {
123123

124124
/**
125125
* After function calls to obj[prop], calls the callback with the return value.
126-
* @param {!Object} obj
127-
* @param {string} prop
128-
* @param {function(*)} callback
126+
* @param obj
127+
* @param prop
128+
* @param callback
129129
*/
130130
function after(obj: Object, prop: string, callback: Function) {
131131
if (!(prop in obj)) {

src/testing/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
* limitations under the License.
1515
*/
1616

17-
export async function imgLoadPromise(img) {
17+
export async function imgLoadPromise(img: HTMLImageElement): Promise<void> {
1818
if (img.complete) {
1919
return;
2020
}
2121

22-
return new Promise((resolve, reject) => {
22+
return new Promise<void>((resolve, reject) => {
2323
function finish() {
2424
img.removeEventListener('load', load);
2525
img.removeEventListener('error', error);
@@ -38,4 +38,4 @@ export async function imgLoadPromise(img) {
3838
img.addEventListener('load', load);
3939
img.addEventListener('error', error);
4040
});
41-
}
41+
}

0 commit comments

Comments
 (0)