0.0.33 • Published 6 months ago

@types/stack-trace v0.0.33

Weekly downloads
120,985
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/stack-trace

Summary

This package contains type definitions for node-stack-trace (https://github.com/felixge/node-stack-trace).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stack-trace.

index.d.ts

// Type definitions for node-stack-trace
// Project: https://github.com/felixge/node-stack-trace
// Definitions by: Exceptionless <https://github.com/exceptionless>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped


export interface StackFrame {
    getTypeName(): string;
    getFunctionName(): string;
    getMethodName(): string;
    getFileName(): string;
    getLineNumber(): number;
    getColumnNumber(): number;
    isNative(): boolean;
    isConstructor(): boolean;
}

export declare function get(belowFn?: () => void): StackFrame[];
export declare function parse(err: Error): StackFrame[];

Additional Details

  • Last updated: Mon, 18 Apr 2022 23:33:55 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Exceptionless.