mini-types
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -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 @@ /** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176161
6046