mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
add type define for callsite(https://github.com/tj/callsite)
This commit is contained in:
1 parent
6d3c9f422f
commit
8791743f8e
1 file changed
+27
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
// Type definitions for callsite 1.0.0
|
||||
// Project: https://github.com/tj/callsite
|
||||
// Definitions by: newclear <https://github.com/newclear>
|
||||
// Definitions: https://github.com/newclear/DefinitelyTyped
|
||||
|
||||
declare module "callsite" {
|
||||
interface CallSite {
|
||||
getFileName(): string;
|
||||
getFunctionName(): string;
|
||||
getScriptNameOrSourceUrl(): string;
|
||||
getMethodName(): string;
|
||||
getEvalOrigin(): string;
|
||||
getTypeName(): string;
|
||||
getLineNumber(): number;
|
||||
getColumnNumber(): number;
|
||||
getFunction(): Function;
|
||||
getThis(): any;
|
||||
isNative(): boolean;
|
||||
isToplevel(): boolean;
|
||||
isEval(): boolean;
|
||||
isConstructor(): boolean;
|
||||
}
|
||||
|
||||
function callsiteFunc(): CallSite[];
|
||||
|
||||
export = callsiteFunc;
|
||||
}
|
||||
Reference in new issue
Block a user