Skip to content

Commit 144a89a

Browse files
authored
fix types for Await's render prop (#12298)
1 parent 626dc46 commit 144a89a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-router/lib/components.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ export interface AwaitProps<Resolve> {
848848
}
849849
```
850850
*/
851-
children: React.ReactNode | AwaitResolveRenderFunction;
851+
children: React.ReactNode | AwaitResolveRenderFunction<Resolve>;
852852

853853
/**
854854
The error element renders instead of the children when the promise rejects.

0 commit comments

Comments
 (0)