mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
add type define for callsite(https://github.com/tj/callsite)
This commit is contained in:
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