Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
18 lines
529 B
Plaintext
18 lines
529 B
Plaintext
import { LiteralUnion } from 'type-fest';
|
|
|
|
export interface StackFrame {
|
|
file: string | null;
|
|
methodName: LiteralUnion<'<unknown>', string>;
|
|
arguments: string[];
|
|
lineNumber: number | null;
|
|
column: number | null;
|
|
}
|
|
|
|
/**
|
|
* This parser parses a stack trace from any browser or Node.js and returns an array of hashes representing a line.
|
|
*
|
|
* @param stackString - The stack to parse, usually from `error.stack` property.
|
|
* @returns The parsed stack frames.
|
|
*/
|
|
export function parse(stackString: string): StackFrame[];
|