diff --git a/generator.js b/generator.js
index 2b9b1c6..dc2d9e1 100644
--- a/generator.js
+++ b/generator.js
@@ -42,8 +42,6 @@ module.exports = (api, options, rootOptions) => {
devDependencies: {
'@dcloudio/uni-helper-json': '*',
'@dcloudio/types': '^3.3.2',
- 'miniprogram-api-typings': '*',
- 'mini-types': '*',
'postcss-comment': '^2.0.0'
}
}
diff --git a/template/common-ts/tsconfig.json b/template/common-ts/tsconfig.json
index 711704d..5ef2763 100644
--- a/template/common-ts/tsconfig.json
+++ b/template/common-ts/tsconfig.json
@@ -14,9 +14,7 @@
"baseUrl": ".",
"types": [
"webpack-env",
- "@dcloudio/types",
- "miniprogram-api-typings",
- "mini-types"
+ "@dcloudio/types"
],
"paths": {
"@/*": [
diff --git a/template/common/jsconfig.json b/template/common/jsconfig.json
deleted file mode 100644
index 730626d..0000000
--- a/template/common/jsconfig.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "compilerOptions": {
- "types": [
- "@dcloudio/types",
- "miniprogram-api-typings",
- "mini-types"
- ]
- }
-}
diff --git a/template/common/shims-uni.d.ts b/template/common/shims-uni.d.ts
index 63f8430..b24295a 100644
--- a/template/common/shims-uni.d.ts
+++ b/template/common/shims-uni.d.ts
@@ -1,10 +1,11 @@
+///
import Vue from 'vue'
declare module "vue/types/options" {
type Hooks = App.AppInstance & Page.PageInstance;
interface ComponentOptions extends Hooks {
- /**
- * 组件类型
- */
- mpType?: string;
+ /**
+ * 组件类型
+ */
+ mpType?: string;
}
-}
\ No newline at end of file
+}
diff --git a/template/common/shims-vue.d.ts b/template/common/shims-vue.d.ts
index dc48246..eb40980 100644
--- a/template/common/shims-vue.d.ts
+++ b/template/common/shims-vue.d.ts
@@ -1,4 +1,4 @@
declare module "*.vue" {
import Vue from 'vue'
export default Vue
-}
\ No newline at end of file
+}