UNPKG

@types/blocked-at

Version:
35 lines (28 loc) 866 B
/// <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; } }