forked from sensorsdata/sa-sdk-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sensorsdata.min.d.ts
24 lines (20 loc) · 986 Bytes
/
sensorsdata.min.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
declare namespace sensors {
function init(para: object): void;
function track(e: string, p?: object, c?: any): void;
function use(name: string, option: object): any;
function quick(name: string, p?: any, t?: any, c?: any): any;
function identify(id: string, isSave?: boolean): any;
function resetAnonymousIdentity(id: string): void;
function login(id: string, callback?: any): void;
function logout(isChangeId?: boolean): void;
function setOnceProfile(prop: object, c?: any): void;
function setProfile(prop: object, c?: any): void;
function appendProfile(prop: object, c?: any): void;
function incrementProfile(prop: object, c?: any): void;
function deleteProfile(c?: any): void;
function unsetProfile(prop: object, c?: any): void;
function registerPage(obj: object): void;
function getPresetProperties(): any;
}
// 当项目中是通过 script 标签的 src 来加载神策 SDK 时,可以注释掉下面 export 这行代码
export default sensors;