-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add typescript definition (#34)
- Loading branch information
Showing
2 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* Add search paths for looking up symbol files. | ||
*/ | ||
export function addSymbolPath(...paths: string[]): void | ||
|
||
/** | ||
* Get the stack trace from `minidumpFilePath` | ||
* The `callback` would be called with `callback(error, report)` upon completion. | ||
*/ | ||
export function walkStack( | ||
minidump: string, | ||
callback: (err: Error, result: string) => void, | ||
commandArgs?: string[] | ||
): void | ||
export function walkStack( | ||
minidump: string, | ||
symbolPaths: string[], | ||
callback: (err: Error, result: string) => void, | ||
commandArgs?: string[] | ||
): void | ||
|
||
/** | ||
* Dump debug symbols in minidump format from `binaryPath` | ||
* The `callback` would be called with `callback(error, minidump)` upon completion. | ||
*/ | ||
export function dumpSymbol( | ||
binaryPath: string, | ||
callback: (err: Error, result: string) => void | ||
): void | ||
|
||
type ModuleInfo = { | ||
version: string | ||
name: string | ||
pdb_file_name?: string | ||
debug_identifier?: string | ||
} | ||
|
||
export function moduleList( | ||
minidump: string, | ||
callback: (err: Error, result: ModuleInfo[]) => void | ||
): void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters