From 3ad857be6c845e3ed09eccff951efdf604e4ca64 Mon Sep 17 00:00:00 2001 From: August Skare Date: Mon, 19 Nov 2018 08:53:25 +0100 Subject: fix timeout type in animation component --- packages/dev-tools-pages/ts/components/Animations/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/dev-tools-pages/ts') diff --git a/packages/dev-tools-pages/ts/components/Animations/index.tsx b/packages/dev-tools-pages/ts/components/Animations/index.tsx index 95af4448c..da1b31917 100644 --- a/packages/dev-tools-pages/ts/components/Animations/index.tsx +++ b/packages/dev-tools-pages/ts/components/Animations/index.tsx @@ -20,7 +20,7 @@ class BaseAnimation extends React.PureComponent height: undefined, width: undefined, }; - private _timeout = null as any; + private _timeout = undefined as number; public componentDidMount(): void { this._updateAnimationSize(); @@ -55,7 +55,7 @@ class BaseAnimation extends React.PureComponent private readonly _handleResize = () => { clearTimeout(this._timeout); - this._timeout = setTimeout(this._updateAnimationSize, 50); + this._timeout = window.setTimeout(this._updateAnimationSize, 50); }; private readonly _updateAnimationSize = () => { -- cgit v1.2.3