Skip to content

Commit ee5c5dd

Browse files
author
Mark
committed
Upgrade Typescript and types
1 parent 0a4d2ac commit ee5c5dd

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"sinon": "^9.0.1",
7373
"tslint": "^6.1.1",
7474
"tslint-config-prettier": "^1.15.0",
75-
"typescript": "^3.2.2",
75+
"typescript": "^3.9.6",
7676
"uglify-es": "^3.3.9"
7777
}
7878
}

wait-for-element-transition.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ function getTransitionDuration(el: HTMLElement): number {
5858
*/
5959
const getCssComputedProperty = (prop: string): string => {
6060
const style = window.getComputedStyle(el);
61-
return style.getPropertyValue(prop) || el.style[getJsPropName(prop)];
61+
return (
62+
style.getPropertyValue(prop) ||
63+
(el.style[getJsPropName(prop)] as string)
64+
);
6265
};
6366

6467
const delayProp = getCssComputedProperty('transition-delay') || '0ms';

0 commit comments

Comments
 (0)