# @types/umtrack-wx

> TypeScript definitions for umtrack-wx

Latest version **2.3.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/umtrack-wx
pnpm add @types/umtrack-wx
yarn add @types/umtrack-wx
bun add @types/umtrack-wx
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.3.4 |
| Published | 2023-11-07 |
| First published | 2020-04-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51439 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/umtrack-wx
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/umtrack-wx
- npm.io page: https://npm.io/package/@types/umtrack-wx

## Recent versions

- 2.3.4 (latest) — 2023-11-07
- 2.3.2 (ts4.3) — 2023-08-30
- 2.3.1 (ts3.6) — 2021-07-02
- 2.3.0 (ts2.8) — 2020-04-27
- 2.3.3 — 2023-10-18

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/umtrack-wx/index.d.ts)
````ts
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: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Wen Yishan](https://github.com/azzgo).

---
_Source: https://npm.io/package/@types/umtrack-wx · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
