@types/stack-utils
- Version 2.0.3
- Published
- 6.43 kB
- No dependencies
- MIT license
Install
npm i @types/stack-utils
yarn add @types/stack-utils
pnpm add @types/stack-utils
Overview
TypeScript definitions for stack-utils
Index
Classes
Interfaces
Classes
class StackUtils
class StackUtils {}
constructor
constructor(options?: StackUtils.Options);
method at
at: (startStackFunction?: Function) => StackUtils.CallSiteLike;
method capture
capture: { (limit?: number, startStackFunction?: Function): StackUtils.CallSite[]; (startStackFunction: Function): StackUtils.CallSite[];};
method captureString
captureString: { (limit?: number, startStackFunction?: Function): string; (startStackFunction: Function): string;};
method clean
clean: (stack: string | string[]) => string;
method nodeInternals
static nodeInternals: () => RegExp[];
method parseLine
parseLine: (line: string) => StackUtils.StackLineData | null;
Interfaces
interface CallSite
interface CallSite {}
method getColumnNumber
getColumnNumber: () => number;
method getEvalOrigin
getEvalOrigin: () => CallSite | string;
method getFileName
getFileName: () => string | undefined;
method getFunction
getFunction: () => Function | undefined;
method getFunctionName
getFunctionName: () => string;
method getLineNumber
getLineNumber: () => number;
method getMethodName
getMethodName: () => string | null;
method getThis
getThis: () => object | undefined;
method getTypeName
getTypeName: () => string;
method isConstructor
isConstructor: () => boolean;
method isEval
isEval: () => boolean;
method isNative
isNative: () => boolean;
method isToplevel
isToplevel: () => boolean;
interface CallSiteLike
interface CallSiteLike extends StackData {}
property type
type?: string | undefined;
interface Options
interface Options {}
property cwd
cwd?: string | undefined;
property ignoredPackages
ignoredPackages?: string[] | undefined;
property internals
internals?: RegExp[] | undefined;
method wrapCallSite
wrapCallSite: (callSite: CallSite) => CallSite;
interface StackData
interface StackData {}
property column
column?: number | undefined;
property constructor
constructor?: boolean | undefined;
property evalOrigin
evalOrigin?: string | undefined;
property file
file?: string | undefined;
property function
function?: string | undefined;
property line
line?: number | undefined;
property method
method?: string | undefined;
property native
native?: boolean | undefined;
interface StackLineData
interface StackLineData extends StackData {}
property evalColumn
evalColumn?: number | undefined;
property evalFile
evalFile?: string | undefined;
property evalLine
evalLine?: number | undefined;
Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/stack-utils
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/stack-utils)
- HTML<a href="https://www.jsdocs.io/package/@types/stack-utils"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3481 ms. - Missing or incorrect documentation? Open an issue for this package.