Skip to content

Commit f73633e

Browse files
committed
Data extending object
1 parent e4add67 commit f73633e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import { stubComponents } from './stubs'
3535
type Slot = VNode | string | { render: Function }
3636

3737
interface MountingOptions<Props, Data = {}> {
38-
data?: () => unknown extends Data ? never : Partial<Data>
38+
data?: () => Data extends object ? Partial<Data> : never
3939
props?: Props
4040
attrs?: Record<string, unknown>
4141
slots?: {

0 commit comments

Comments
 (0)