npm.io
0.0.33 • Published 2 years ago

@types/stack-trace

Licence
MIT
Version
0.0.33
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.3K

Installation

npm install --save @types/stack-trace

Summary

This package contains type definitions for 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

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: Tue, 07 Nov 2023 1536 GMT
  • Dependencies: none

Credits

These definitions were written by Exceptionless.