diff --git a/src/types/i18n.d.ts b/src/types/i18n.d.ts new file mode 100644 index 0000000..43fb8aa --- /dev/null +++ b/src/types/i18n.d.ts @@ -0,0 +1,8 @@ +export {} + +declare module 'vue' { + interface ComponentCustomProperties { + $t: (key: string, opt?: Record) => string + $tm: (key: string, opt?: Record) => [] | { [p: string]: any } + } +}