bpms_site/.svn/pristine/0d/0db3f7a9d0ba877e5ab0d6d4f1df6cc187f44783.svn-base
2025-11-02 16:38:49 +03:30

28 lines
565 B
Plaintext

import type { OriginalStackFrame } from './stack-frame';
export type StackFramesGroup = {
framework?: 'next' | 'react';
stackFrames: OriginalStackFrame[];
};
/**
* Group sequences of stack frames by framework.
*
* Given the following stack frames:
* Error
* user code
* user code
* react
* react
* next
* next
* react
* react
*
* The grouped stack frames would be:
* > user code
* > react
* > next
* > react
*
*/
export declare function groupStackFramesByFramework(stackFrames: OriginalStackFrame[]): StackFramesGroup[];