$ cnpm install @types/callsite
npm install --save @types/callsite
This package contains type definitions for callsite (https://github.com/tj/callsite).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/callsite.
// Type definitions for callsite 1.0.0
// Project: https://github.com/tj/callsite
// Definitions by: newclear <https://github.com/newclear>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare 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;
}
}
declare function Callsite(): Callsite.CallSite[];
export = Callsite;
These definitions were written by newclear.
Copyright 2013 - present © cnpmjs.org | Home |