From 8e1644acfeafc57ed2ebcd0f97597773282408cd Mon Sep 17 00:00:00 2001 From: Tobbe Lundberg Date: Thu, 12 Dec 2024 01:14:18 +0100 Subject: [PATCH] fix(set): Correctly infer generic (#11768) --- packages/router/src/Set.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/router/src/Set.tsx b/packages/router/src/Set.tsx index 74b59ca01dd8..98403546a7f7 100644 --- a/packages/router/src/Set.tsx +++ b/packages/router/src/Set.tsx @@ -8,7 +8,7 @@ type SetProps

= (P extends React.FC ? React.ComponentProps

: unknown) & { * A react component that the children of the Set will be wrapped * in (typically a Layout component) */ - wrap?: P | P[] + wrap?: P /** *`Routes` nested in a `` with `private` specified require * authentication. When a user is not authenticated and attempts to visit