1.12.6 • Published 6 months ago

@types/iopipe__iopipe v1.12.6

Weekly downloads
5
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for @iopipe/iopipe 1.12
// Project: https://github.com/iopipe/iopipe, https://github.com/iopipe/the-meta-package
// Definitions by: Javon Harper <https://github.com/javonharper>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 08 Jul 2021 14:23:18 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Javon Harper.

1.12.6

6 months ago

1.12.5

7 months ago

1.12.4

3 years ago

1.12.3

4 years ago

1.12.2

5 years ago

1.12.1

5 years ago

1.12.0

5 years ago