Skip to content

Commit

Permalink
update $gtm global property augmentation to use new strategy of augme…
Browse files Browse the repository at this point in the history
…nting 'vue' module, fixes gtm-support#464
  • Loading branch information
romansp committed Aug 13, 2024
1 parent 5268e63 commit 1e85793
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"vue-router": "^4.2.5"
},
"peerDependencies": {
"vue": ">= 3.2.0 < 4.0.0"
"vue": ">= 3.2.26 < 4.0.0"
},
"peerDependenciesMeta": {
"vue-router": {
Expand Down
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,7 @@ export function createGtm(options: VueGtmUseOptions): VueGtmPlugin {
return { install: (app: App) => install(app, options) };
}

// @ts-expect-error: assume that `vue` already brings this dependency
declare module '@vue/runtime-core' {
declare module 'vue' {
// eslint-disable-next-line jsdoc/require-jsdoc
export interface ComponentCustomProperties {
/**
Expand Down

0 comments on commit 1e85793

Please sign in to comment.