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