DefinitelyTyped/types/heapdump/index.d.ts
Arne Schubert ed43fdd5b7 Enhance definition for heapdump (#24927)
* Enhance definition and according tests for heapdump

* Add changes to fix the CI
2018-04-16 17:43:33 -07:00

9 lines
480 B
TypeScript

// Type definitions for heapdump 0.3
// Project: https://github.com/bnoordhuis/node-heapdump
// Definitions by: weekens <https://github.com/weekens>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
export function writeSnapshot(dumpFileName?: string, callback?: (err: Error | null, filename: string | undefined) => void): void;
export function writeSnapshot(callback: (err: Error | null, filename: string | undefined) => void): void;