From 4733566de2caf4d5b2b8c001dc14f8f7aea08159 Mon Sep 17 00:00:00 2001 From: Ivan Hofer Date: Mon, 7 Mar 2022 18:58:10 +0100 Subject: [PATCH] remove `extends any` --- src/runtime/internal/dom.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/internal/dom.ts b/src/runtime/internal/dom.ts index 641d6ae35d..cd13092a79 100644 --- a/src/runtime/internal/dom.ts +++ b/src/runtime/internal/dom.ts @@ -734,7 +734,7 @@ export function get_custom_elements_slots(element: HTMLElement) { } -type ActionWithParams = ( +type ActionWithParams = ( node: Node, options: Params ) => { @@ -746,6 +746,6 @@ type ActionWithoutParams = (node: Node) destroy?: () => void } -export type Action = void extends Params +export type Action = void extends Params ? ActionWithoutParams : ActionWithParams