@@ -13,7 +13,7 @@ declare module StackTrace {
13
13
}
14
14
15
15
export interface StackFrame {
16
- constructor ( functionName :string , args :any , fileName :string , lineNumber :number , columnNumber :number ) ;
16
+ constructor ( functionName :string , args :any , fileName :string , lineNumber :number , columnNumber :number ) : StackFrame ;
17
17
18
18
functionName ?:string ;
19
19
args ?:any ;
@@ -28,7 +28,7 @@ declare module StackTrace {
28
28
* @param options Options Object
29
29
* @return Array[StackFrame]
30
30
*/
31
- export function get ( options : StackTraceOptions ) : Promise < StackFrame [ ] > ;
31
+ export function get ( options ? : StackTraceOptions ) : Promise < StackFrame [ ] > ;
32
32
33
33
/**
34
34
* Given an error object, parse it.
@@ -43,7 +43,7 @@ declare module StackTrace {
43
43
* @param options Object options
44
44
* @returns Array[StackFrame]
45
45
*/
46
- export function generateArtificially ( options : StackTraceOptions ) : Promise < StackFrame [ ] > ;
46
+ export function generateArtificially ( options ? : StackTraceOptions ) : Promise < StackFrame [ ] > ;
47
47
48
48
/**
49
49
* Given a function, wrap it such that invocations trigger a callback that
@@ -54,7 +54,7 @@ declare module StackTrace {
54
54
* @param {Function } errorCallback optional function to call with error if unable to get stack trace.
55
55
* @param {Object } thisArg optional context object (e.g. window)
56
56
*/
57
- export function instrument ( fn :( ) => void , callback :( stackFrames :StackFrame [ ] ) => void , errorCallback :( ) => void , thisArg :any ) : void ;
57
+ export function instrument ( fn :( ) => void , callback :( stackFrames :StackFrame [ ] ) => void , errorCallback :( error : Error ) => void , thisArg ? :any ) : void ;
58
58
59
59
/**
60
60
* Given a function that has been instrumented,
0 commit comments