UNPKG

declarations

Version:

[![npm version](https://badge.fury.io/js/declarations.svg)](https://www.npmjs.com/package/declarations)

31 lines (25 loc) 834 B
// 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" { namespace Callsite{ interface CallSite { getThis(): any; getTypeName(): string; getFunctionName(): string; getMethodName(): string; getFileName(): string; getLineNumber(): number; getColumnNumber(): number; getFunction(): Function; getEvalOrigin(): string; isNative(): boolean; isToplevel(): boolean; isEval(): boolean; isConstructor(): boolean; } } function Callsite(): Callsite.CallSite[]; export = Callsite; }