fix types: make crossfade fallback param optional (#6201)

pull/6271/head
Milan Jaritz 3 years ago committed by GitHub
parent c8632a9b53
commit ff23c45de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -207,7 +207,7 @@ export interface CrossfadeParams {
type ClientRectMap = Map<any, { rect: ClientRect }>;
export function crossfade({ fallback, ...defaults }: CrossfadeParams & {
fallback: (node: Element, params: CrossfadeParams, intro: boolean) => TransitionConfig;
fallback?: (node: Element, params: CrossfadeParams, intro: boolean) => TransitionConfig;
}) {
const to_receive: ClientRectMap = new Map();
const to_send: ClientRectMap = new Map();

Loading…
Cancel
Save