🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@types/insight

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/insight

TypeScript definitions for insight

0.8.4
ts4.5
ts4.6
ts4.7
ts4.8
ts4.9
ts5.0
ts5.1
ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
latest
Source
npm
Version published
Weekly downloads
524
-1.87%
Maintainers
1
Weekly downloads
 
Created
Source

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

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.

FAQs

Package last updated on 07 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts