Skip to content

Commit

Permalink
fix(ui): Type-Error because of 'declare module "@vue/runtime-core"' #…
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Sep 17, 2024
1 parent 2481bab commit 391ed78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/build/build.types.js
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ function getIndexDts (apis, quasarLangIndex) {
writeLine(contents)

// Extend Vue instance with injections
writeLine(contents, 'declare module \'@vue/runtime-core\' {')
writeLine(contents, 'declare module \'vue\' {')
writeLine(contents, 'interface ComponentCustomProperties {', 1)

for (const key in injections) {
Expand All @@ -647,7 +647,7 @@ function getIndexDts (apis, quasarLangIndex) {
}
writeLine(contents, '}')
writeLine(contents)
writeLine(contents, 'declare module \'@vue/runtime-core\' {')
writeLine(contents, 'declare module \'vue\' {')
writeLine(contents, 'interface GlobalComponents extends _GlobalComponents {}', 1)
writeLine(contents, '}')
writeLine(contents)
Expand Down

0 comments on commit 391ed78

Please sign in to comment.