@tuya-miniapp/api-types
Advanced tools
Comparing version
{ | ||
"name": "@tuya-miniapp/api-types", | ||
"version": "1.1.19", | ||
"version": "1.1.20", | ||
"description": "小程序框架运行时 API types 定义", | ||
"main": "", | ||
"types": "./index.d.ts", | ||
"license": "MIT", | ||
"files": [ | ||
@@ -17,2 +18,6 @@ "scripts/", | ||
}, | ||
"devDependencies": { | ||
"@noyobo/npm-publisher": "latest", | ||
"typescript": "^4.8.3" | ||
}, | ||
"maintainers": [ | ||
@@ -22,16 +27,4 @@ { | ||
"email": "tuyafe@tuya.com" | ||
}, | ||
{ | ||
"name": "tuya_npm", | ||
"email": "Tuya-npm@tuya.com" | ||
}, | ||
{ | ||
"name": "tuya-miniapp-admin", | ||
"email": "tuya-miniapp-admin@tuya.com" | ||
} | ||
], | ||
"devDependencies": { | ||
"@noyobo/npm-publisher": "latest", | ||
"typescript": "^4.8.3" | ||
} | ||
] | ||
} |
# api-types | ||
小程序框架运行时 API types 定义 | ||
小程序框架运行时 API types 定义 | ||
@@ -915,2 +915,12 @@ declare namespace SmartMiniprogram { | ||
interface WebviewContext { | ||
postMessage(msg: { data: Record<string, any>}): void; | ||
reload(options?: { | ||
success?: () => void; | ||
fail?: () => void; | ||
complete?: () => void; | ||
}): void; | ||
} | ||
interface TY { | ||
@@ -1261,2 +1271,9 @@ /** | ||
presetFunctionalData(options: PresetFunctionalDataOptions): void; | ||
/** | ||
* 创建 WebviewContext 实例 | ||
* 基础库 >= 2.15.0 | ||
* @param webviewId | ||
*/ | ||
createWebviewContext(webviewId: string): WebviewContext; | ||
} | ||
@@ -1263,0 +1280,0 @@ |
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
85254
0.27%0
-100%2386
0.59%5
66.67%