chore: update types

# Conflicts:
#	generator.js
This commit is contained in:
qiang 2023-08-25 19:49:45 +08:00
parent 79ba8072d2
commit 2ca6b35a75
5 changed files with 8 additions and 20 deletions

View File

@ -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'
}
}

View File

@ -14,9 +14,7 @@
"baseUrl": ".",
"types": [
"webpack-env",
"@dcloudio/types",
"miniprogram-api-typings",
"mini-types"
"@dcloudio/types"
],
"paths": {
"@/*": [

View File

@ -1,9 +0,0 @@
{
"compilerOptions": {
"types": [
"@dcloudio/types",
"miniprogram-api-typings",
"mini-types"
]
}
}

View File

@ -1,10 +1,11 @@
/// <reference types='@dcloudio/types' />
import Vue from 'vue'
declare module "vue/types/options" {
type Hooks = App.AppInstance & Page.PageInstance;
interface ComponentOptions<V extends Vue> extends Hooks {
/**
*
*/
mpType?: string;
/**
*
*/
mpType?: string;
}
}
}

View File

@ -1,4 +1,4 @@
declare module "*.vue" {
import Vue from 'vue'
export default Vue
}
}