Skip to content

Commit 8184a92

Browse files
fix(modernjs): add explicit return type to SSRLiveReload function
Fixes TypeScript error TS2742 where inferred type could not be named without portable React types reference. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c84ddbe commit 8184a92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/modernjs/src/ssr-runtime/SSRLiveReload.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export function SSRLiveReload() {
1+
export function SSRLiveReload(): JSX.Element | null {
22
if (process.env.NODE_ENV !== 'development') {
33
return null;
44
}

0 commit comments

Comments
 (0)