Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
20
node_modules/next/dist/client/components/react-dev-overlay/server/shared.d.ts
generated
vendored
Normal file
20
node_modules/next/dist/client/components/react-dev-overlay/server/shared.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import type { StackFrame } from 'stacktrace-parser';
|
||||
export interface OriginalStackFramesRequest {
|
||||
frames: StackFrame[];
|
||||
isServer: boolean;
|
||||
isEdgeServer: boolean;
|
||||
isAppDirectory: boolean;
|
||||
}
|
||||
export type OriginalStackFramesResponse = OriginalStackFrameResponseResult[];
|
||||
export type OriginalStackFrameResponseResult = PromiseSettledResult<OriginalStackFrameResponse>;
|
||||
export interface OriginalStackFrameResponse {
|
||||
originalStackFrame?: (StackFrame & {
|
||||
ignored: boolean;
|
||||
}) | null;
|
||||
originalCodeFrame?: string | null;
|
||||
}
|
||||
/**
|
||||
* It looks up the code frame of the traced source.
|
||||
* @note It ignores Next.js/React internals, as these can often be huge bundled files.
|
||||
*/
|
||||
export declare function getOriginalCodeFrame(frame: StackFrame, source: string | null, colors?: boolean): string | null;
|
||||
Loading…
Add table
Add a link
Reference in a new issue