miniprogram-api-typings
Advanced tools
Comparing version 3.2.2 to 3.2.3
@@ -0,1 +1,7 @@ | ||
## 2021-02-22 v3.2.3 | ||
- 更新 API 定义到 2.15.0 | ||
- 修复 `Component.triggerEvent` 的 `detail` 类型 | ||
- 修复几个接口的定义([#193](https://github.com/wechat-miniprogram/api-typings/issues/193), [#185](https://github.com/wechat-miniprogram/api-typings/issues/185), [#180](https://github.com/wechat-miniprogram/api-typings/issues/180)) | ||
- 修改 `MethodOption` 以解决 [#161](https://github.com/wechat-miniprogram/api-typings/issues/161)(鸣谢:[@Lienviws](https://github.com/Lienviws)) | ||
## 2021-01-14 v3.2.2 | ||
@@ -2,0 +8,0 @@ - 修复几个接口未 Promise 化的问题 |
{ | ||
"name": "miniprogram-api-typings", | ||
"version": "3.2.2", | ||
"version": "3.2.3", | ||
"beta": "true", | ||
@@ -5,0 +5,0 @@ "description": "Type definitions for APIs of Wechat Mini Program in TypeScript", |
@@ -86,3 +86,3 @@ /*! ***************************************************************************** | ||
type PropertyOption = Record<string, AllProperty> | ||
type MethodOption = Record<string, (...args: any[]) => any> | ||
type MethodOption = Record<string, Function> | ||
@@ -195,5 +195,5 @@ interface Data<D extends DataOption> { | ||
/** 触发事件,参见组件事件 */ | ||
triggerEvent( | ||
triggerEvent<DetailType = any>( | ||
name: string, | ||
detail?: Record<string, unknown>, | ||
detail?: DetailType, | ||
options?: TriggerEventOption | ||
@@ -200,0 +200,0 @@ ): void |
Sorry, the diff of this file is too big to display
1014202
22762