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; }[]; };