1.0.4 • Published 6 months ago

@types/blocked-at v1.0.4

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

Installation

npm install --save @types/blocked-at

Summary

This package contains type definitions for blocked-at (https://github.com/naugtur/blocked-at#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/blocked-at.

index.d.ts

// Type definitions for blocked-at 1.0
// Project: https://github.com/naugtur/blocked-at#readme
// Definitions by: Jan Dolezel <https://github.com/dolezel>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

/*~ Note that ES6 modules cannot directly export callable functions.
 *~ This file should be imported using the CommonJS-style:
 *~   import x = require('someLibrary');
 *~
 *~ Refer to the documentation to understand common
 *~ workarounds for this limitation of ES6 modules.
 */

export = blockedAt;

declare function blockedAt(fn: (time: number, stack: string[], resource: blockedAt.Resource) => unknown, options?: blockedAt.Options): blockedAt.Return;

declare namespace blockedAt {
  interface Options {
    trimFalsePositives?: boolean | undefined;
    threshold?: number | undefined;
    resourcesCap?: number | undefined;
    debug?: boolean | undefined;
  }

  interface Resource {
    type: string;
    resource?: any;
  }

  interface Return {
    stop: () => void;
  }
}

Additional Details

  • Last updated: Wed, 07 Jul 2021 21:44:59 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Jan Dolezel.

1.0.4

6 months ago

1.0.2

8 months ago

1.0.3

7 months ago

1.0.1

3 years ago

1.0.0

3 years ago