Skip to content

Commit 319aa34

Browse files
committed
remove extends object and fix props
1 parent e17f431 commit 319aa34

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/mount.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import { stubComponents } from './stubs'
3434

3535
type Slot = VNode | string | { render: Function }
3636

37-
interface MountingOptions<Props, Data extends object = {}> {
37+
interface MountingOptions<Props, Data = {}> {
3838
data?: () => Data extends unknown ? never : Data
3939
props?: Props
4040
attrs?: Record<string, unknown>
@@ -102,7 +102,7 @@ export function mount<
102102
E,
103103
EE
104104
>,
105-
options?: MountingOptions<Props, D>
105+
options?: MountingOptions<never, D>
106106
): VueWrapper<
107107
ComponentPublicInstance<Props, RawBindings, D, C, M, E, VNodeProps & Props>
108108
>

test-dts/mount.d-test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ const AppWithoutProps = {
116116

117117
// can't receive extra props
118118
expectError(
119-
(wrapper = mount(AppWithoutProps, {
119+
mount(AppWithoutProps, {
120120
props: { b: 'Hello' }
121-
}))
121+
})
122122
)
123123

124124
// except if explicitly cast

0 commit comments

Comments
 (0)