From aacc2b94088835d1247bdf3a3f883f74cc3570a0 Mon Sep 17 00:00:00 2001 From: Mark Deutsch Date: Mon, 17 Jun 2024 16:23:21 -0400 Subject: [PATCH] Fix type definition of `Route.children` (#11672) --- contributors.yml | 1 + docs/route/route.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contributors.yml b/contributors.yml index 9a98d82035..72b3758798 100644 --- a/contributors.yml +++ b/contributors.yml @@ -67,6 +67,7 @@ - DigitalNaut - dmitrytarassov - dokeet +- doytch - Drishtantr - edwin177 - eiffelwong1 diff --git a/docs/route/route.md b/docs/route/route.md index e3262bb432..49d93f1600 100644 --- a/docs/route/route.md +++ b/docs/route/route.md @@ -70,7 +70,7 @@ Neither style is discouraged and behavior is identical. For the majority of this interface RouteObject { path?: string; index?: boolean; - children?: React.ReactNode; + children?: RouteObject[]; caseSensitive?: boolean; id?: string; loader?: LoaderFunction;