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.