Skip to content

Commit 8dd1545

Browse files
committed
fix: wrong StackFrame type picked by tsc
1 parent 53baff6 commit 8dd1545

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

src/react-native.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
declare module "react-native/Libraries/Core/Devtools/parseErrorStack" {
2+
export type ReactNativeGrabStackFrame = {
3+
column: number | null | undefined;
4+
file: string | null | undefined;
5+
lineNumber: number | null | undefined;
6+
methodName: string;
7+
collapse: boolean;
8+
};
9+
}

src/react-native/get-rendered-by.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import symbolicateStackTrace from "react-native/Libraries/Core/Devtools/symbolicateStackTrace";
2-
import type { StackFrame } from "react-native/Libraries/Core/Devtools/parseErrorStack";
2+
import type { ReactNativeGrabStackFrame as StackFrame } from "react-native/Libraries/Core/Devtools/parseErrorStack";
33
import { ReactNativeFiberNode } from "./types";
44

55
export type RenderedByFrame = {

0 commit comments

Comments
 (0)