mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +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:
9
stacktrace-js/stacktrace-js.d.ts
vendored
9
stacktrace-js/stacktrace-js.d.ts
vendored
@@ -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