From 9af9de2d81095c8336a68786556406cdf21a1c93 Mon Sep 17 00:00:00 2001 From: Carlos Rodrigues Date: Mon, 15 Jun 2020 14:05:38 +0100 Subject: [PATCH] fix the MountingOptions --- src/mount.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mount.ts b/src/mount.ts index f06be2a97..59f32ec5e 100644 --- a/src/mount.ts +++ b/src/mount.ts @@ -52,7 +52,11 @@ type SlotDictionary = { } interface MountingOptions { - data?: () => Data extends object ? Partial : never + data?: () => {} extends Data + ? never + : Data extends object + ? Partial + : never props?: Props attrs?: Record slots?: SlotDictionary & {