Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mini-types

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mini-types - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

6

CHANGELOG.md

@@ -1,7 +0,7 @@

# next
# 0.1.3
* **Bug Fix**
- 修复 `IPreviewImageOptions` 的 `current` 属性为 `number` 类型;
- 修复 `pageInstance.$spliceData` 和 `componentInstance.$spliceData` 没有回调函数的问题。
- 修复 `IPreviewImageOptions` 的 `current` 属性为 `number` 类型。
# 0.0.2

@@ -8,0 +8,0 @@

{
"name": "mini-types",
"version": "0.1.2",
"version": "0.1.3",
"description": "TypeScript declarations for Alipay's mini program.",

@@ -5,0 +5,0 @@ "scripts": {

@@ -67,5 +67,5 @@ declare namespace tinyapp {

/**
* 设置data触发视图渲染
* 同 setData,但是相比于 setData,在处理长列表的时候,其具有更高的性能
*/
$spliceData: (operations: { [k: string]: [number, number, ...any[]] }) => void;
$spliceData: SpliceDataMethod;
}

@@ -72,0 +72,0 @@

@@ -112,2 +112,8 @@ declare namespace tinyapp {

interface ISpliceDataOperations {
[k: string]: [number, number, ...any[]];
}
type SpliceDataMethod = (operations: ISpliceDataOperations, callback?: () => void) => void;
interface IPageInstance<D> extends Record<string, any> {

@@ -125,5 +131,5 @@ /**

/**
* 同setData,但是相比于setData,在处理长列表的时候,其具有更高的性能
* 同 setData,但是相比于 setData,在处理长列表的时候,其具有更高的性能
*/
$spliceData: (operations: { [k: string]: [number, number, ...any[]] }) => void;
$spliceData: SpliceDataMethod;

@@ -130,0 +136,0 @@ /**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc