Skip to content

Commit 9af9de2

Browse files
committed
fix the MountingOptions
1 parent 26cde00 commit 9af9de2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/mount.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ type SlotDictionary = {
5252
}
5353

5454
interface MountingOptions<Props, Data = {}> {
55-
data?: () => Data extends object ? Partial<Data> : never
55+
data?: () => {} extends Data
56+
? never
57+
: Data extends object
58+
? Partial<Data>
59+
: never
5660
props?: Props
5761
attrs?: Record<string, unknown>
5862
slots?: SlotDictionary & {

0 commit comments

Comments
 (0)