@types/leakage
@types/leakage
npm i @types/leakage
@types/leakage

@types/leakage

The repository for high quality TypeScript type definitions.

by DefinitelyTyped

0.4.1 (see all)License:MITTypeScript:Built-In
npm i @types/leakage
Readme

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.

Downloads/wk

15

GitHub Stars

40.9K

LAST COMMIT

7mos ago

MAINTAINERS

1

CONTRIBUTORS

17,572

OPEN ISSUES

635

OPEN PRs

204
VersionTagPublished
0.4.1
latest
1yr ago
0.4.1
ts4.7
1yr ago
0.4.1
ts4.6
1yr ago
0.4.1
ts4.8
1yr ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate