Normally Palatable Mango

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

    0.4.1 • Public • Published

    Installation

    npm install --save @types/leakage

    Summary

    This package contains type definitions for leakage (https://github.com/andywer/leakage#readme).

    Details

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

    index.d.ts

    // Type definitions for leakage 0.4
    // Project: https://github.com/andywer/leakage#readme
    // Definitions by: Arne Schubert <https://github.com/atd-schubert>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    export class MemoryLeakError extends Error {}
    
    export interface IterateOptions {
        iterations?: number | undefined;
        gcollections?: number | undefined;
    }
    
    export function iterate(iteratorFn: () => void, options?: IterateOptions): Result;
    
    export namespace iterate {
        function async(iteratorFn: () => Promise<void>, options?: IterateOptions): Promise<Result>;
    }
    
    export interface Result {
        heapDiffs: any[];
        gcollections: number;
        iterations: number;
    
        printSummary(title: string, log?: (msg: string) => void): void;
    }

    Additional Details

    • Last updated: Thu, 08 Jul 2021 16:23:40 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by Arne Schubert.

    Keywords

    none

    Install

    npm i @types/leakage

    DownloadsWeekly Downloads

    12

    Version

    0.4.1

    License

    MIT

    Unpacked Size

    4.09 kB

    Total Files

    4

    Last publish

    Collaborators

    • types