Skip to content

Commit

Permalink
chore: ignore TS error in config object
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
cexbrayat committed Aug 1, 2024
1 parent 5448e07 commit 6b610d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/createInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ export function createInstance(
keyof Omit<AppConfig, 'isNativeTag'>,
any
][]) {
// @ts-expect-error https://github.com/vuejs/test-utils/issues/2483
app.config[k] = isObject(app.config[k])
? Object.assign(app.config[k]!, v)
: v
Expand Down

0 comments on commit 6b610d7

Please sign in to comment.