# @types/growing-io

> TypeScript definitions for growing-io

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

## Install

```sh
npm install @types/growing-io
pnpm add @types/growing-io
yarn add @types/growing-io
bun add @types/growing-io
```

## 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.1.4 |
| Published | 2023-11-07 |
| First published | 2019-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51446 |
| Maintainers | types |

## Links

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

## Recent versions

- 2.1.4 (latest) — 2023-11-07
- 2.1.1 (ts3.6) — 2021-07-08
- 2.1.0 (ts2.0) — 2019-10-16
- 2.1.3 — 2023-10-18
- 2.1.2 — 2023-09-20

## README

# Installation
> `npm install --save @types/growing-io`

# Summary
This package contains type definitions for growing-io (https://docs.growingio.com/docs/dashboard/homepage).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/growing-io.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/growing-io/index.d.ts)
````ts
// growingIO
interface GIOObjectVariables {
    [key: string]: string;
}

interface GIOInitOptions {
    /** 配置imp类型的数据关闭发送 */
    imp?: boolean | undefined;
}

interface GIOConfigOptions {
    /** 是否采集数据 */
    dataCollect?: "true" | "false" | boolean | undefined;
    /** 是否检测hash变化 */
    hashtag?: "true" | "false" | boolean | undefined;
}

interface GrowingIO {
    /** clearUserId: 清空用户信息, sendPage: 上报页面数据 */
    (action: "clearUserId" | "sendPage"): void;
    /** 设置用户登录id */
    (action: "setUserId", userId: string): void;
    /** app.set: 对于应用级变量，也就是 1.x 版本中的 CS2 - CS10, people.set: 用户级变量, page.set: 页面级变量 visit.set: 访问用户级变量, evar.set: 转化变量 */
    (action: "app.set" | "people.set" | "page.set" | "visit.set" | "evar.set", variables: GIOObjectVariables): void;
    /** app.set: 对于应用级变量，也就是 1.x 版本中的 CS2 - CS10, people.set: 用户级变量, page.set: 页面级变量 visit.set: 访问用户级变量, evar.set: 转化变量 */
    (action: "app.set" | "people.set" | "page.set" | "visit.set" | "evar.set", key: string, value: string): void;
    /** 自定义埋点 */
    (action: "track", eventId: string, numberOrVariables?: number | GIOObjectVariables): void;
    /** 自定义埋点 */
    (action: "track", eventId: string, number: number, eventLevelVariables: GIOObjectVariables): void;
    /** 初始化 */
    (action: "init", projectId: string, options?: GIOInitOptions): void;
    /** 配置 */
    (action: "config", options: GIOConfigOptions): void;
}

declare const gio: GrowingIO;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [Forzoom](https://github.com/Forzoom).

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