From 61c87e3c43811529cb5ceada953b43e6525a0881 Mon Sep 17 00:00:00 2001 From: lihbr Date: Wed, 30 Aug 2023 18:20:02 +0200 Subject: [PATCH] fix: looser slice component type --- src/components/SliceZone.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/SliceZone.ts b/src/components/SliceZone.ts index cd734ef..85aebaf 100644 --- a/src/components/SliceZone.ts +++ b/src/components/SliceZone.ts @@ -9,6 +9,7 @@ import { Raw, VNodeProps, computed, + defineAsyncComponent, defineComponent, h, markRaw, @@ -229,6 +230,8 @@ export type SliceComponentType< // For reference within TypeScript files when `*.vue` type cannot be inferred // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types | DefineComponent<{}, {}, any> + // Likewise, for reference with TypeScript files. + | ReturnType | DefineComponent> | FunctionalComponent>;