You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@tuya-miniapp/api-types

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tuya-miniapp/api-types - npm Package Compare versions

Comparing version

to
1.1.20

21

package.json
{
"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 @@