@types/callsite
TypeScript icon, indicating that this package has built-in type declarations

1.0.34 • Public • Published

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

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/callsite

Weekly Downloads

9,178

Version

1.0.34

License

MIT

Unpacked Size

3.6 kB

Total Files

5

Last publish

Collaborators

  • types