@types/callsite
Version:
TypeScript definitions for callsite
41 lines (33 loc) • 1.13 kB
Markdown
# Installation
> `npm install --save @types/callsite`
# Summary
This package contains type definitions for callsite (https://github.com/tj/callsite).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/callsite.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/callsite/index.d.ts)
````ts
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;
````
### Additional Details
* Last updated: Mon, 06 Nov 2023 22:41:05 GMT
* Dependencies: none
# Credits
These definitions were written by [newclear](https://github.com/newclear).