File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export type FindAllComponentsSelector = NameSelector | string
21
21
22
22
export type GlobalMountOptions = {
23
23
plugins ?: ( Plugin | [ Plugin , ...any [ ] ] ) [ ]
24
- config ?: Omit < AppConfig , 'isNativeTag' > // isNativeTag is readonly, so we omit it
24
+ config ?: Partial < Omit < AppConfig , 'isNativeTag' > > // isNativeTag is readonly, so we omit it
25
25
mixins ?: ComponentOptions [ ]
26
26
mocks ?: Record < string , any >
27
27
provide ?: Record < any , any >
Original file line number Diff line number Diff line change @@ -143,3 +143,13 @@ expectType<number>(
143
143
}
144
144
} ) . vm . a
145
145
)
146
+
147
+ // global config should accept a partial config
148
+ mount ( AppWithProps , {
149
+ props : { a : 'Hello' } ,
150
+ global : {
151
+ config : {
152
+ isCustomElement : ( tag : string ) => true
153
+ }
154
+ }
155
+ } )
You can’t perform that action at this time.
0 commit comments