Skip to content

Commit 7115f2e

Browse files
committed
修复 registerDynamicSuperProperties TS 类型错误
修复 registerDynamicSuperProperties TS 类型错误
1 parent 4956e5d commit 7115f2e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 3.0.3(2025-6-18)
2+
1. 修复 registerDynamicSuperProperties().properties 在 TS 下的报错
3+
14
## 2.4.0(2024-12-12)
25
1. 修复不支持 RN 0.7.x react-navigation 全埋点浏览
36
2. 修复 RN 0.7.x 部分情况下点击全埋点报错

index.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ declare enum SAAutoTrackType {
3737
VIEW_SCREEN = 8
3838
}
3939

40+
interface AnyObj {
41+
[key: string]: any
42+
}
43+
4044
/**
4145
* 登录
4246
*
@@ -316,7 +320,7 @@ export function trackAppInstall(properties?: PropertiesObjectType): void;
316320
* 注册事件动态公共属性
317321
* @return 动态公共属性监听对象
318322
*/
319-
export function registerDynamicSuperProperties(): object;
323+
export function registerDynamicSuperProperties(): AnyObj;
320324

321325

322326
/**

0 commit comments

Comments
 (0)