From 94b985effb735d3fdd048113f32955c1c9cf5992 Mon Sep 17 00:00:00 2001 From: pushkin Date: Tue, 24 Nov 2020 23:48:32 +0100 Subject: [PATCH] make unused `transition_out` parameters optional (#5587) --- src/runtime/internal/transitions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/internal/transitions.ts b/src/runtime/internal/transitions.ts index 21d67a12ba..2fc81cc21f 100644 --- a/src/runtime/internal/transitions.ts +++ b/src/runtime/internal/transitions.ts @@ -48,7 +48,7 @@ export function transition_in(block, local?: 0 | 1) { } } -export function transition_out(block, local: 0 | 1, detach: 0 | 1, callback) { +export function transition_out(block, local: 0 | 1, detach?: 0 | 1, callback?) { if (block && block.o) { if (outroing.has(block)) return; outroing.add(block);