mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-22 11:40:10 +08:00
Merge pull request #7692 from fverswijver/patch-1
Update stacktrace-js.d.ts to include report function
This commit is contained in:
Vendored
+9
@@ -63,4 +63,13 @@ declare module StackTrace {
|
||||
* @param fn {Function}
|
||||
*/
|
||||
export function deinstrument(fn:() => void): void;
|
||||
|
||||
/**
|
||||
* Given an Array of StackFrames, serialize and POST to given URL.
|
||||
*
|
||||
* @param stackframes - Array[StackFrame]
|
||||
* @param url - URL as String
|
||||
* @return Promise<any>
|
||||
*/
|
||||
export function report(stackframes: StackFrame[], url: string): Promise<any>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user