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

2

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

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

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

type SetPageStyleOptions = AsyncApiOptions<void, void> & {
style: Record<string, string>;
};
type CreateAnimationOptions = {

@@ -1162,2 +1166,11 @@ /** 动画延迟时间,单位 ms */

/**
* 设置页面根节点样式,相当于 HTML 中的 body 节点
* @param options 样式参数
* @param options.style 样式内容
* @example
* ty.setPageStyle({ style: { backgroundColor: '#000' } })
*/
setPageStyle(options: SetPageStyleOptions): void;
/**
* 创建一个动画实例。调用实例的方法来描述动画。最后通过动画实例的 export 方法导出动画数据传递给组件的 animation 属性。

@@ -1164,0 +1177,0 @@ *