@types/iopipe__iopipe
TypeScript icon, indicating that this package has built-in type declarations

1.12.6 • Public • Published

Installation

npm install --save @types/iopipe__iopipe

Summary

This package contains type definitions for @iopipe/iopipe (https://github.com/iopipe/iopipe).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/iopipe__iopipe.

index.d.ts

declare function iopipe(config?: iopipe.LibraryConfig): iopipe.FunctionWrapper;

declare namespace iopipe {
    function label(label: string): void;

    function metric(label: string, value: number): void;

    namespace mark {
        function start(label: string): void;
        function end(label: string): void;
    }

    interface LibraryConfig {
        debug?: boolean | undefined;
        token?: string | undefined;
        networkTimeout?: number | undefined;
        timeoutWindow?: number | undefined;
    }

    type FunctionWrapper = <T>(handler: T) => T;
}

export = iopipe;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Javon Harper.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/iopipe__iopipe

Weekly Downloads

9

Version

1.12.6

License

MIT

Unpacked Size

3.76 kB

Total Files

5

Last publish

Collaborators

  • types