@@ -25,7 +25,7 @@ export function blur(node: Element, {
2525 easing = cubicInOut ,
2626 amount = 5 ,
2727 opacity = 0
28- } : BlurParams ) : TransitionConfig {
28+ } : BlurParams = { } ) : TransitionConfig {
2929 const style = getComputedStyle ( node ) ;
3030 const target_opacity = + style . opacity ;
3131 const f = style . filter === 'none' ? '' : style . filter ;
@@ -50,7 +50,7 @@ export function fade(node: Element, {
5050 delay = 0 ,
5151 duration = 400 ,
5252 easing = linear
53- } : FadeParams ) : TransitionConfig {
53+ } : FadeParams = { } ) : TransitionConfig {
5454 const o = + getComputedStyle ( node ) . opacity ;
5555
5656 return {
@@ -77,7 +77,7 @@ export function fly(node: Element, {
7777 x = 0 ,
7878 y = 0 ,
7979 opacity = 0
80- } : FlyParams ) : TransitionConfig {
80+ } : FlyParams = { } ) : TransitionConfig {
8181 const style = getComputedStyle ( node ) ;
8282 const target_opacity = + style . opacity ;
8383 const transform = style . transform === 'none' ? '' : style . transform ;
@@ -104,7 +104,7 @@ export function slide(node: Element, {
104104 delay = 0 ,
105105 duration = 400 ,
106106 easing = cubicOut
107- } : SlideParams ) : TransitionConfig {
107+ } : SlideParams = { } ) : TransitionConfig {
108108 const style = getComputedStyle ( node ) ;
109109 const opacity = + style . opacity ;
110110 const height = parseFloat ( style . height ) ;
@@ -146,7 +146,7 @@ export function scale(node: Element, {
146146 easing = cubicOut ,
147147 start = 0 ,
148148 opacity = 0
149- } : ScaleParams ) : TransitionConfig {
149+ } : ScaleParams = { } ) : TransitionConfig {
150150 const style = getComputedStyle ( node ) ;
151151 const target_opacity = + style . opacity ;
152152 const transform = style . transform === 'none' ? '' : style . transform ;
@@ -177,7 +177,7 @@ export function draw(node: SVGElement & { getTotalLength(): number }, {
177177 speed,
178178 duration,
179179 easing = cubicInOut
180- } : DrawParams ) : TransitionConfig {
180+ } : DrawParams = { } ) : TransitionConfig {
181181 const len = node . getTotalLength ( ) ;
182182
183183 if ( duration === undefined ) {
0 commit comments