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.