mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Update stacktrace-js.d.ts to include report function
Added function to the definition file that was not present.
This commit is contained in:
1 parent
93bae1bb4c
commit
ae84fb741f
1 file changed
+9
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