1.0.34 • Published 6 months ago

@types/callsite v1.0.34

Weekly downloads
23,345
License
MIT
Repository
github
Last release
6 months ago

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

// 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;

Additional Details

  • Last updated: Fri, 09 Jul 2021 02:32:22 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by newclear.