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

1.2.2 • Public • Published

Installation

npm install --save @types/v8-callsites

Summary

This package contains type definitions for v8-callsites (https://github.com/stringparser/v8-callsites).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/v8-callsites.

index.d.ts

import { CallSite } from "callsite";

/**
 * Captures a specific callstack.
 *
 * @param origin
 * The method to start to record.
 *
 * @returns
 * The captured callstack.
 */
declare function stack(origin?: (...args: any[]) => any): CallSite[];

/**
 * Captures a specific callstack.
 *
 * @param frames
 * The number of frames to capture.
 *
 * @param origin
 * The method to start to record.
 *
 * @returns
 * The captured callstack.
 */
declare function stack(frames: number, origin: (...args: any[]) => any): CallSite[];

export = stack;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/callsite

Credits

These definitions were written by Manuel Thalmann.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/v8-callsites

Weekly Downloads

51

Version

1.2.2

License

MIT

Unpacked Size

3.74 kB

Total Files

5

Last publish

Collaborators

  • types