2.3.4 • Published 6 months ago

@types/umtrack-wx v2.3.4

Weekly downloads
99
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/umtrack-wx

Summary

This package contains type definitions for umtrack-wx (https://github.com/umeng/mp-demos).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/umtrack-wx.

index.d.ts

// Type definitions for umtrack-wx  2.3
// Project: https://github.com/umeng/mp-demos
// Definitions by: Wen Yishan <https://github.com/azzgo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace UMA {
    interface InitParams {
        /**
         * @description
         * APP_KEY distributed by the Umeng<https://www.umeng.com/>
         */
        appKey: string;
        /**
         * @description
         * Whether or not to use openid for statistics, if this is false, the user statistics will be used by "Umeng" + random ID
         */
        useOpenid?: boolean | undefined;
        /**
         * @description If you need to get openid from the Umeng backend, please go to the Umeng backend to set the miniprogram's appId and secret
         */
        autoGetOpenid?: boolean | undefined;
        /**
         * @description debug mode
         */
        debug?: boolean | undefined;
    }

    type EventParams = string | {[key: string]: string};

    interface UMAStatic {
        init(_: InitParams): void;
        setOpenid(openid: string): void;
        setUnionid(unionid: string): void;
        trackEvent(eventName: string, eventParams?: EventParams): void;
    }
}

declare var uma: UMA.UMAStatic;

export = uma;

Additional Details

  • Last updated: Fri, 02 Jul 2021 18:04:48 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Wen Yishan.

2.3.2

8 months ago

2.3.4

6 months ago

2.3.3

7 months ago

2.3.1

3 years ago

2.3.0

4 years ago