Fix Vue typings

This commit is contained in:
the1812 2021-05-28 20:43:43 +08:00
parent c9f5f9caae
commit 11c52ddb11
4 changed files with 6 additions and 13 deletions

View File

@ -20,11 +20,10 @@
"sass": "^1.22.10",
"terser": "^5.3.8",
"typescript": "^4.0.5",
"vue": "^2.6.10",
"vue": "^2.6.12",
"vuex": "^3.1.2"
},
"scripts": {
"postinstall": "node postinstall.js",
"serve": "node script/server.js"
},
"repository": {

View File

@ -1,5 +0,0 @@
const fs = require('fs')
const path = './node_modules/vue/types/umd.d.ts'
if (fs.existsSync(path)) {
fs.unlinkSync(path)
}

3
src/global.d.ts vendored
View File

@ -1,10 +1,9 @@
import { LoDashStatic } from 'lodash'
import { VueConstructor } from 'vue'
import { Store } from 'vuex'
declare global {
const _: LoDashStatic
const Vue: VueConstructor
const Vue: typeof import('vue/types/umd')
const Vuex: typeof import('vuex')
const JSZip: typeof import('jszip')
const store: Store<{

View File

@ -1873,10 +1873,10 @@ vary@^1.1.2:
resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=
vue@^2.6.10:
version "2.6.11"
resolved "https://registry.npm.taobao.org/vue/download/vue-2.6.11.tgz#76594d877d4b12234406e84e35275c6d514125c5"
integrity sha1-dllNh31LEiNEBuhONSdcbVFBJcU=
vue@^2.6.12:
version "2.6.12"
resolved "https://registry.nlark.com/vue/download/vue-2.6.12.tgz?cache=0&sync_timestamp=1622060354904&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fvue%2Fdownload%2Fvue-2.6.12.tgz#f5ebd4fa6bd2869403e29a896aed4904456c9123"
integrity sha1-9evU+mvShpQD4pqJau1JBEVskSM=
vuex@^3.1.2:
version "3.4.0"