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.18

2

package.json
{
"name": "@tuya-miniapp/api-types",
"version": "1.1.17",
"version": "1.1.18",
"description": "小程序框架运行时 API types 定义",

@@ -5,0 +5,0 @@ "main": "",

@@ -903,2 +903,6 @@ declare namespace SmartMiniprogram {

interface SetWidgetHeightOptions {
height: number;
}
interface TY {

@@ -1238,2 +1242,11 @@ /**

canIUse(schema: string): boolean;
/**
* 动态设置当前 Widget 高度, 仅在 Widget 下支持
* @param options 设置参数
* @param options.height 设置的高度, 单位: px
* @example
* ty.setWidgetHeight({ height: 100 })
*/
setWidgetHeight(options: SetWidgetHeightOptions): void;
}

@@ -1240,0 +1253,0 @@