File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 16
16
"description" : " allows to connect your `Laravel` Framework localization files with `Vue`." ,
17
17
"main" : " dist/cjs/index.js" ,
18
18
"module" : " dist/index.js" ,
19
+ "types" : " dist/index.d.ts" ,
19
20
"scripts" : {
20
21
"watch" : " tsc --watch" ,
21
22
"test" : " jest" ,
Original file line number Diff line number Diff line change @@ -98,6 +98,16 @@ export const reset = (): void => {
98
98
*/
99
99
export const trans_choice = transChoice
100
100
101
+ /**
102
+ * Type declarations for `$t` and `$tChoice` mixins.
103
+ */
104
+ declare module '@vue/runtime-core' {
105
+ interface ComponentCustomProperties {
106
+ $t : typeof trans
107
+ $tChoice : typeof transChoice
108
+ }
109
+ }
110
+
101
111
/**
102
112
* The Vue Plugin. to be used on your Vue app like this: `app.use(i18nVue)`
103
113
*/
You can’t perform that action at this time.
0 commit comments