Skip to content

Commit 78ad163

Browse files
committed
Updated tracekit def
1 parent 7425a5f commit 78ad163

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/typings/tracekit/tracekit.d.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ declare module TraceKit {
22
export interface StackFrame {
33
url:string;
44
func:string;
5-
args:string|string[];
5+
args:string[];
66
line:number;
77
column:number;
88
context:string[];
@@ -68,6 +68,13 @@ declare module TraceKit {
6868
* @return {Object.<string, *>} Stack trace information.
6969
*/
7070
ofCaller:(depth:string|number) => StackTrace;
71+
72+
/**
73+
* Retrieves source code from the source code cache.
74+
* @param {string} url URL of source code.
75+
* @return {Array.<string>} Source contents.
76+
*/
77+
getSource:(url:string) => string[];
7178
}
7279

7380
export interface Report {

0 commit comments

Comments
 (0)