Skip to content

Commit

Permalink
fix types for Await's render prop (#12298)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcattori authored Nov 15, 2024
1 parent 626dc46 commit 144a89a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-router/lib/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ export interface AwaitProps<Resolve> {
}
```
*/
children: React.ReactNode | AwaitResolveRenderFunction;
children: React.ReactNode | AwaitResolveRenderFunction<Resolve>;

/**
The error element renders instead of the children when the promise rejects.
Expand Down

0 comments on commit 144a89a

Please sign in to comment.