mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
add class EditorContext for uni-app types (#35712)
* fix: getStoragetSync return value is incorrect. * fix: The type of return value type of Storage is incorrect * added parameter for GetStorageOptions.success * added value parameter for setStorageSync * fix setStorageSync with value: any * update types for uni-app * add class EditorContext for uni-app types * fix lint for uni-app * remove *.vue module for uni-app
This commit is contained in:
Vendored
+6
-6348
File diff suppressed because it is too large
Load Diff
Vendored
+6554
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,5 @@
|
||||
import Vue from "vue";
|
||||
|
||||
declare module "*.vue" {
|
||||
export default Vue;
|
||||
}
|
||||
|
||||
declare module "vue/types/options" {
|
||||
type Hooks = App.AppInstance & Page.PageInstance;
|
||||
interface ComponentOptions<V extends Vue> extends Hooks {
|
||||
@@ -19,10 +19,10 @@
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"app.d.ts",
|
||||
"page.d.ts",
|
||||
"common.d.ts",
|
||||
"vue.d.ts",
|
||||
"lib/app.d.ts",
|
||||
"lib/page.d.ts",
|
||||
"lib/common.d.ts",
|
||||
"lib/vue.d.ts",
|
||||
"uni-app-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -19,3 +19,12 @@ uni.navigateTo({
|
||||
uni.showLoading({
|
||||
title: 'test'
|
||||
});
|
||||
|
||||
uni.createSelectorQuery().select('.test').context(res => {
|
||||
const context = <EditorContext> res.context;
|
||||
context.getContents({
|
||||
success() {
|
||||
console.log('getContents success');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user