# @types/insight

> TypeScript definitions for insight

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

## Install

```sh
npm install @types/insight
pnpm add @types/insight
yarn add @types/insight
bun add @types/insight
```

## 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; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.8.4 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

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

## Recent versions

- 0.8.4 (latest) — 2023-11-07
- 0.8.1 (ts3.6) — 2021-07-08
- 0.8.0 (ts2.0) — 2018-01-03
- 0.8.3 — 2023-10-18
- 0.8.2 — 2023-09-26
- 0.4.29 — 2017-08-21
- 0.4.28 — 2016-09-19
- 0.4.27 — 2016-07-14
- 0.4.26-alpha — 2016-07-08
- 0.4.25-alpha — 2016-07-04
- 0.4.24-alpha — 2016-07-02
- 0.4.23-alpha — 2016-07-01
- 0.4.22-alpha — 2016-07-01
- 0.4.21-alpha — 2016-05-25
- 0.4.20-alpha — 2016-05-20
- … 2 more at https://npm.io/package/@types/insight/versions

## README

# Installation
> `npm install --save @types/insight`

# Summary
This package contains type definitions for insight (https://github.com/yeoman/insight).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/insight.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/insight/index.d.ts)
````ts
declare namespace insight {
    interface IPackage {
        name: string;
        version: string;
    }

    interface IOptions {
        trackingCode: string;
        trackingProvider?: string | undefined;
        pkg?: IPackage | undefined;
        packageName?: string | undefined;
        packageVersion?: string | undefined;
        config?: IConfigstore | undefined;
    }

    interface IConfigstore {
        path: string;
        all: any;
        get(key: string): any;
        set(key: string, val: any): void;
        del(key: string): void;
    }

    interface IEvent {
        category: string;
        action: string;
        label?: string | undefined;
        value?: number | string | undefined;
    }
}

import IPackage = insight.IPackage;
import IOptions = insight.IOptions;
import IConfigstore = insight.IConfigstore;
import IEvent = insight.IEvent;

declare class Insight {
    trackingCode: string;
    trackingProvider: string;
    packageName: string;
    packageVersion: string;
    os: string;
    nodeVersion: string;
    appVersion: string;
    config: IConfigstore;

    optOut: boolean;
    clientId: string;

    constructor(options: IOptions);

    track(...args: string[]): void;
    trackEvent(event: IEvent): void;

    askPermission(msg?: string, cb?: Function): void;
}

export = Insight;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [vvakame](https://github.com/vvakame).

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