mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-30 12:50:40 +08:00
Added typings for npm module traceback
* git: https://github.com/iriscouch/traceback
This commit is contained in:
1 parent
3420691dd9
commit
fcc9487535
2 files changed
+61
No files matched your search
@@ -0,0 +1,29 @@
|
||||
/// <reference path="traceback.d.ts" />
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
|
||||
function testTraceback() {
|
||||
var TracebackStaticClass: TracebackStatic = function () {
|
||||
return [{
|
||||
name: 'some',
|
||||
path: 'nice',
|
||||
file: 'good',
|
||||
line: 113,
|
||||
col: 32,
|
||||
pos: 43,
|
||||
fun: {'x-x': 'any'},
|
||||
method: 'like',
|
||||
this: { no: "thing"},
|
||||
type: 'goal',
|
||||
origin: ['bad'],
|
||||
is_top: true,
|
||||
is_eval: false,
|
||||
is_native: true,
|
||||
is_ctor: true
|
||||
}];
|
||||
};
|
||||
|
||||
var traceback: Traceback[] = TracebackStaticClass();
|
||||
|
||||
var TBReq: TracebackStatic = require('traceback');
|
||||
var traceback: Traceback[] = TBReq();
|
||||
}
|
||||
Reference in new issue
Block a user