From 4e87195739f2a5d9a05451b48773c8afdc680765 Mon Sep 17 00:00:00 2001 From: akiyamn Date: Sun, 24 Sep 2023 23:22:21 +1000 Subject: Initial commit (by create-cloudflare CLI) --- node_modules/stacktracey/stacktracey.d.ts | 88 +++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 node_modules/stacktracey/stacktracey.d.ts (limited to 'node_modules/stacktracey/stacktracey.d.ts') diff --git a/node_modules/stacktracey/stacktracey.d.ts b/node_modules/stacktracey/stacktracey.d.ts new file mode 100644 index 0000000..bf4e3a4 --- /dev/null +++ b/node_modules/stacktracey/stacktracey.d.ts @@ -0,0 +1,88 @@ +declare class StackTracey { + + constructor (input?: Error|string|StackTracey.Entry[], offset?: number) + + items: StackTracey.Entry[] + + extractEntryMetadata (e: StackTracey.Entry): StackTracey.Entry + + shortenPath (relativePath: string): string + relativePath (fullPath: string): string + isThirdParty (relativePath: string): boolean + + rawParse (str: string): StackTracey.Entry[] + + withSourceAt (i: number): StackTracey.Entry + withSourceAsyncAt (i: number): Promise + + withSource (entry: StackTracey.Entry): StackTracey.Entry + withSourceAsync (entry: StackTracey.Entry): Promise + + withSources (): StackTracey + withSourcesAsync (): Promise + mergeRepeatedLines (): StackTracey + + clean (): StackTracey + cleanAsync (): Promise + + isClean (entry: StackTracey.Entry, index: number): boolean + + map (f: (x: StackTracey.Entry, i: number, arr: StackTracey.Entry[]) => StackTracey.Entry): StackTracey + filter (f: (x: StackTracey.Entry, i: number, arr: StackTracey.Entry[]) => boolean): StackTracey + slice (from?: number, to?: number): StackTracey + concat (...args: StackTracey.Entry[]): StackTracey + + at (i: number): StackTracey.Entry + + asTable (opts?: { maxColumnWidths?: StackTracey.MaxColumnWidths }): string + + maxColumnWidths (): StackTracey.MaxColumnWidths + + static resetCache (): void + static locationsEqual (a: StackTracey.Location, b: StackTracey.Location): boolean +} + +declare namespace StackTracey { + + interface SourceFile { + + path: string + text: string + lines: string[] + error?: Error + } + + interface Location { + + file: string + line?: number + column?: number + } + + interface Entry extends Location { + + beforeParse: string + callee: string + index: boolean + native: boolean + + calleeShort: string + fileRelative: string + fileShort: string + fileName: string + thirdParty: boolean + + hide?: boolean + sourceLine?: string + sourceFile?: SourceFile + error?: Error + } + + interface MaxColumnWidths { + callee: number + file: number + sourceLine: number + } +} + +export = StackTracey -- cgit v1.2.3