chore: remove unnecessary type annotations
This commit is contained in:
parent
be9b4b2527
commit
231b940103
@ -210,26 +210,14 @@ function getTransitionInfo(
|
|||||||
): CSSTransitionInfo {
|
): CSSTransitionInfo {
|
||||||
const styles: any = window.getComputedStyle(el)
|
const styles: any = window.getComputedStyle(el)
|
||||||
// JSDOM may return undefined for transition properties
|
// JSDOM may return undefined for transition properties
|
||||||
const transitionDelays: Array<string> = (
|
const transitionDelays = (styles[TRANSITION + 'Delay'] || '').split(', ')
|
||||||
styles[TRANSITION + 'Delay'] || ''
|
const transitionDurations = (styles[TRANSITION + 'Duration'] || '').split(
|
||||||
).split(', ')
|
', '
|
||||||
const transitionDurations: Array<string> = (
|
|
||||||
styles[TRANSITION + 'Duration'] || ''
|
|
||||||
).split(', ')
|
|
||||||
const transitionTimeout: number = getTimeout(
|
|
||||||
transitionDelays,
|
|
||||||
transitionDurations
|
|
||||||
)
|
|
||||||
const animationDelays: Array<string> = (
|
|
||||||
styles[ANIMATION + 'Delay'] || ''
|
|
||||||
).split(', ')
|
|
||||||
const animationDurations: Array<string> = (
|
|
||||||
styles[ANIMATION + 'Duration'] || ''
|
|
||||||
).split(', ')
|
|
||||||
const animationTimeout: number = getTimeout(
|
|
||||||
animationDelays,
|
|
||||||
animationDurations
|
|
||||||
)
|
)
|
||||||
|
const transitionTimeout = getTimeout(transitionDelays, transitionDurations)
|
||||||
|
const animationDelays = (styles[ANIMATION + 'Delay'] || '').split(', ')
|
||||||
|
const animationDurations = (styles[ANIMATION + 'Duration'] || '').split(', ')
|
||||||
|
const animationTimeout = getTimeout(animationDelays, animationDurations)
|
||||||
|
|
||||||
let type: CSSTransitionInfo['type'] = null
|
let type: CSSTransitionInfo['type'] = null
|
||||||
let timeout = 0
|
let timeout = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user