From fc0a2f8e1c73f7686e1187833992ea4e5e0f7dae Mon Sep 17 00:00:00 2001 From: Jayden <18993882884@163.com> Date: Thu, 16 May 2024 17:36:42 +0800 Subject: [PATCH] fix 004-types-of-property-are-incompatible solutions --- src/004-types-of-property-are-incompatible.solution.1.ts | 2 +- src/004-types-of-property-are-incompatible.solution.2.ts | 2 +- src/004-types-of-property-are-incompatible.solution.3.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/004-types-of-property-are-incompatible.solution.1.ts b/src/004-types-of-property-are-incompatible.solution.1.ts index 665ca66..b2abd1f 100644 --- a/src/004-types-of-property-are-incompatible.solution.1.ts +++ b/src/004-types-of-property-are-incompatible.solution.1.ts @@ -1,7 +1,7 @@ const createRoutes = (config: { routes: { path: string; - component: string; + component: string | number; }[]; }) => {}; diff --git a/src/004-types-of-property-are-incompatible.solution.2.ts b/src/004-types-of-property-are-incompatible.solution.2.ts index ffd34d3..946be06 100644 --- a/src/004-types-of-property-are-incompatible.solution.2.ts +++ b/src/004-types-of-property-are-incompatible.solution.2.ts @@ -1,7 +1,7 @@ type RoutingConfig = { routes: { path: string; - component: string; + component: string | number; }[]; }; diff --git a/src/004-types-of-property-are-incompatible.solution.3.ts b/src/004-types-of-property-are-incompatible.solution.3.ts index d52afd9..75927ae 100644 --- a/src/004-types-of-property-are-incompatible.solution.3.ts +++ b/src/004-types-of-property-are-incompatible.solution.3.ts @@ -1,7 +1,7 @@ type RoutingConfig = { routes: { path: string; - component: string; + component: string | number; }[]; };