@@ -25,7 +25,7 @@ export function blur(node: Element, {
25
25
easing = cubicInOut ,
26
26
amount = 5 ,
27
27
opacity = 0
28
- } : BlurParams ) : TransitionConfig {
28
+ } : BlurParams = { } ) : TransitionConfig {
29
29
const style = getComputedStyle ( node ) ;
30
30
const target_opacity = + style . opacity ;
31
31
const f = style . filter === 'none' ? '' : style . filter ;
@@ -50,7 +50,7 @@ export function fade(node: Element, {
50
50
delay = 0 ,
51
51
duration = 400 ,
52
52
easing = linear
53
- } : FadeParams ) : TransitionConfig {
53
+ } : FadeParams = { } ) : TransitionConfig {
54
54
const o = + getComputedStyle ( node ) . opacity ;
55
55
56
56
return {
@@ -77,7 +77,7 @@ export function fly(node: Element, {
77
77
x = 0 ,
78
78
y = 0 ,
79
79
opacity = 0
80
- } : FlyParams ) : TransitionConfig {
80
+ } : FlyParams = { } ) : TransitionConfig {
81
81
const style = getComputedStyle ( node ) ;
82
82
const target_opacity = + style . opacity ;
83
83
const transform = style . transform === 'none' ? '' : style . transform ;
@@ -104,7 +104,7 @@ export function slide(node: Element, {
104
104
delay = 0 ,
105
105
duration = 400 ,
106
106
easing = cubicOut
107
- } : SlideParams ) : TransitionConfig {
107
+ } : SlideParams = { } ) : TransitionConfig {
108
108
const style = getComputedStyle ( node ) ;
109
109
const opacity = + style . opacity ;
110
110
const height = parseFloat ( style . height ) ;
@@ -146,7 +146,7 @@ export function scale(node: Element, {
146
146
easing = cubicOut ,
147
147
start = 0 ,
148
148
opacity = 0
149
- } : ScaleParams ) : TransitionConfig {
149
+ } : ScaleParams = { } ) : TransitionConfig {
150
150
const style = getComputedStyle ( node ) ;
151
151
const target_opacity = + style . opacity ;
152
152
const transform = style . transform === 'none' ? '' : style . transform ;
@@ -177,7 +177,7 @@ export function draw(node: SVGElement & { getTotalLength(): number }, {
177
177
speed,
178
178
duration,
179
179
easing = cubicInOut
180
- } : DrawParams ) : TransitionConfig {
180
+ } : DrawParams = { } ) : TransitionConfig {
181
181
const len = node . getTotalLength ( ) ;
182
182
183
183
if ( duration === undefined ) {
0 commit comments