@types/stack-utils
TypeScript definitions for stack-utils
Last updated a year ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ gnpm install @types/stack-utils 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/stack-utils

Summary

This package contains type definitions for stack-utils (https://github.com/tapjs/stack-utils#readme).

Details

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

index.d.ts

export = StackUtils;

declare class StackUtils {
    static nodeInternals(): RegExp[];
    constructor(options?: StackUtils.Options);
    clean(stack: string | string[]): string;
    capture(limit?: number, startStackFunction?: Function): StackUtils.CallSite[];
    capture(startStackFunction: Function): StackUtils.CallSite[];
    captureString(limit?: number, startStackFunction?: Function): string;
    captureString(startStackFunction: Function): string;
    at(startStackFunction?: Function): StackUtils.CallSiteLike;
    parseLine(line: string): StackUtils.StackLineData | null;
}

declare namespace StackUtils {
    interface Options {
        internals?: RegExp[] | undefined;
        ignoredPackages?: string[] | undefined;
        cwd?: string | undefined;
        wrapCallSite?(callSite: CallSite): CallSite;
    }

    interface CallSite {
        getThis(): object | undefined;
        getTypeName(): string;
        getFunction(): Function | undefined;
        getFunctionName(): string;
        getMethodName(): string | null;
        getFileName(): string | undefined;
        getLineNumber(): number;
        getColumnNumber(): number;
        getEvalOrigin(): CallSite | string;
        isToplevel(): boolean;
        isEval(): boolean;
        isNative(): boolean;
        isConstructor(): boolean;
    }

    interface CallSiteLike extends StackData {
        type?: string | undefined;
    }

    interface StackLineData extends StackData {
        evalLine?: number | undefined;
        evalColumn?: number | undefined;
        evalFile?: string | undefined;
    }

    interface StackData {
        line?: number | undefined;
        column?: number | undefined;
        file?: string | undefined;
        constructor?: boolean | undefined;
        evalOrigin?: string | undefined;
        native?: boolean | undefined;
        function?: string | undefined;
        method?: string | undefined;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by BendingBender.

Current Tags

  • 2.0.3                                ...           latest (a year ago)
  • 1.0.1                                ...           ts2.2 (7 years ago)
  • 1.0.1                                ...           ts2.3 (7 years ago)
  • 1.0.1                                ...           ts2.4 (7 years ago)
  • 1.0.1                                ...           ts2.5 (7 years ago)
  • 1.0.1                                ...           ts2.6 (7 years ago)
  • 1.0.1                                ...           ts2.7 (7 years ago)
  • 1.0.1                                ...           ts2.8 (7 years ago)
  • 1.0.1                                ...           ts2.9 (7 years ago)
  • 1.0.1                                ...           ts3.0 (7 years ago)
  • 1.0.1                                ...           ts3.1 (7 years ago)
  • 2.0.0                                ...           ts3.2 (4 years ago)
  • 2.0.0                                ...           ts3.3 (4 years ago)
  • 2.0.0                                ...           ts3.4 (4 years ago)
  • 2.0.0                                ...           ts3.5 (4 years ago)
  • 2.0.1                                ...           ts3.6 (3 years ago)
  • 2.0.1                                ...           ts3.7 (3 years ago)
  • 2.0.1                                ...           ts3.8 (3 years ago)
  • 2.0.1                                ...           ts3.9 (3 years ago)
  • 2.0.1                                ...           ts4.0 (3 years ago)
  • 2.0.1                                ...           ts4.1 (3 years ago)
  • 2.0.1                                ...           ts4.2 (3 years ago)
  • 2.0.1                                ...           ts4.3 (3 years ago)
  • 2.0.1                                ...           ts4.4 (3 years ago)
  • 2.0.3                                ...           ts4.5 (a year ago)
  • 2.0.3                                ...           ts4.6 (a year ago)
  • 2.0.3                                ...           ts4.7 (a year ago)
  • 2.0.3                                ...           ts4.8 (a year ago)
  • 2.0.3                                ...           ts4.9 (a year ago)
  • 2.0.3                                ...           ts5.0 (a year ago)
  • 2.0.3                                ...           ts5.1 (a year ago)
  • 2.0.3                                ...           ts5.2 (a year ago)
  • 2.0.3                                ...           ts5.3 (a year ago)
  • 2.0.3                                ...           ts5.4 (a year ago)

6 Versions

  • 2.0.3                                ...           a year ago
  • 2.0.2                                ...           a year ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           4 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |