Skip to content

Commit ff23c45

Browse files
authored
fix types: make crossfade fallback param optional (#6201)
1 parent c8632a9 commit ff23c45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/transition/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export interface CrossfadeParams {
207207
type ClientRectMap = Map<any, { rect: ClientRect }>;
208208

209209
export function crossfade({ fallback, ...defaults }: CrossfadeParams & {
210-
fallback: (node: Element, params: CrossfadeParams, intro: boolean) => TransitionConfig;
210+
fallback?: (node: Element, params: CrossfadeParams, intro: boolean) => TransitionConfig;
211211
}) {
212212
const to_receive: ClientRectMap = new Map();
213213
const to_send: ClientRectMap = new Map();

0 commit comments

Comments
 (0)