1.2.2 • Published 6 months ago
@types/v8-callsites v1.2.2
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
// Type definitions for v8-callsites 1.2
// Project: https://github.com/stringparser/v8-callsites
// Definitions by: Manuel Thalmann <https://github.com/manuth>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Sun, 11 Jul 2021 14:01:13 GMT
- Dependencies: @types/callsite
- Global values: none
Credits
These definitions were written by Manuel Thalmann.