Skip to content

Commit a7812fe

Browse files
author
Sebi Nemeth
committed
loosen dependencies
1 parent c833961 commit a7812fe

File tree

4 files changed

+45
-112
lines changed

4 files changed

+45
-112
lines changed

dist/index.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Vue, { VueConstructor } from 'vue';
21
import VueI18n from 'vue-i18n';
32
export type TranslationMeta = {
43
locale: string;
@@ -12,6 +11,6 @@ type LiveTranslatorPluginOptions = {
1211
persist?: boolean;
1312
};
1413
export declare const LiveTranslatorPlugin: {
15-
install(app: VueConstructor<Vue>, options: LiveTranslatorPluginOptions): void;
14+
install(app: any, options: LiveTranslatorPluginOptions): void;
1615
};
1716
export {};

package-lock.json

Lines changed: 40 additions & 105 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
"homepage": "https://github.com/apicore-engineering/vue-i18n-live-translator-plugin#readme",
2727
"peerDependencies": {
2828
"lodash": "^4.17.21",
29-
"typescript": "^5.1.6",
30-
"vue": "^2.7.14",
29+
"vue-demi": "^0.14.5",
3130
"vue-i18n": "^8.28.2"
3231
},
3332
"devDependencies": {
3433
"@types/lodash": "^4.14.195",
35-
"husky": "^8.0.0"
34+
"husky": "^8.0.0",
35+
"typescript": "^5.1.6"
3636
}
3737
}

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Vue, { VueConstructor } from 'vue'
21
import VueI18n from 'vue-i18n'
32
import throttle from 'lodash/throttle'
43

@@ -296,7 +295,7 @@ const createBadge = (meta: TranslationMeta, options: LiveTranslatorPluginOptions
296295
}
297296

298297
export const LiveTranslatorPlugin = {
299-
install (app: VueConstructor<Vue>, options: LiveTranslatorPluginOptions) {
298+
install (app: any, options: LiveTranslatorPluginOptions) {
300299
console.log('LiveTranslator is installed')
301300
new LiveTranslatorManager(options)
302301
},

0 commit comments

Comments
 (0)