From ed077355b11b1b3e43f19e893fdd7597e39b64bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B0=B4=E8=90=BD=28YangLei=29?= Date: Fri, 18 Jun 2021 14:34:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=B1=BB=E5=9E=8B=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.d.ts => global.d.ts | 2 ++ jsconfig.json | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) rename index.d.ts => global.d.ts (79%) diff --git a/index.d.ts b/global.d.ts similarity index 79% rename from index.d.ts rename to global.d.ts index f09c47d..5d66a2a 100644 --- a/index.d.ts +++ b/global.d.ts @@ -1,3 +1,5 @@ +import Vue from 'vue'; + declare module 'vue/types/vue' { interface Vue { $t: (s: string) => any; diff --git a/jsconfig.json b/jsconfig.json index b14c183..43851bd 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -4,6 +4,5 @@ "paths": { "@/*": ["src/*"] } - }, - "include": ["./index.d.ts"] + } } -- GitLab