Skip to content

Commit 215788e

Browse files
committed
type tweaks
1 parent ec08d8d commit 215788e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/next/src/client/components/react-dev-overlay/server/middleware-turbopack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export function getOverlayMiddleware(project: Project) {
113113
} satisfies TurbopackStackFrame
114114

115115
if (pathname === '/__nextjs_original-stack-frame') {
116-
let originalStackFrame: Partial<OriginalStackFrameResponse> | null
116+
let originalStackFrame: OriginalStackFrameResponse | null
117117
try {
118118
originalStackFrame = await createOriginalStackFrame(project, frame)
119119
} catch (e: any) {

packages/next/src/client/components/react-dev-overlay/server/shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const nextRe =
2222
/** Given a potential file path, it parses which package the file belongs to. */
2323
export function findSourcePackage(
2424
file: string | null
25-
): OriginalStackFrameResponse['sourcePackage'] | undefined {
25+
): SourcePackage | undefined {
2626
if (!file) return
2727

2828
// matching React first since vendored would match under `next` too

0 commit comments

Comments
 (0)