From 17f56a4b8cce8234a3e6b9ff6d12c8225d4de05f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B0=B4=E8=90=BD=28YangLei=29?= Date: Fri, 18 Jun 2021 11:15:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BC=96=E8=BE=91=E5=99=A8?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.d.ts | 5 +++++ jsconfig.json | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 index.d.ts create mode 100644 jsconfig.json diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..f09c47d --- /dev/null +++ b/index.d.ts @@ -0,0 +1,5 @@ +declare module 'vue/types/vue' { + interface Vue { + $t: (s: string) => any; + } +} diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..b14c183 --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/*": ["src/*"] + } + }, + "include": ["./index.d.ts"] +} -- GitLab