Skip to content

Commit 9d0a618

Browse files
committed
chore: ignore TS error in config object
Fixes #2483 The introduction of `idPrefix` in Vue's `AppConfig` object triggers a TS error that we can't really get rid of (see #2483 for a more detailled explanation).
1 parent bffa73a commit 9d0a618

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/createInstance.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ export function createInstance(
260260
keyof Omit<AppConfig, 'isNativeTag'>,
261261
any
262262
][]) {
263+
// TODO should be switched to a ts-expect-error once Vue 3.5 is used
264+
// @ts-ignore https://github.com/vuejs/test-utils/issues/2483
263265
app.config[k] = isObject(app.config[k])
264266
? Object.assign(app.config[k]!, v)
265267
: v
@@ -269,6 +271,7 @@ export function createInstance(
269271
// provide any values passed via provides mounting option
270272
if (global.provide) {
271273
for (const key of Reflect.ownKeys(global.provide)) {
274+
// TODO should be switched to a ts-expect-error
272275
// @ts-ignore: https://github.com/microsoft/TypeScript/issues/1863
273276
app.provide(key, global.provide[key])
274277
}

0 commit comments

Comments
 (0)