Skip to content

Commit e4add67

Browse files
committed
allow partial Data
1 parent 319aa34 commit e4add67

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?: () => Data extends unknown ? never : Data
38+
data?: () => unknown extends Data ? never : Partial<Data>
3939
props?: Props
4040
attrs?: Record<string, unknown>
4141
slots?: {

0 commit comments

Comments
 (0)