From 1c3d88ba80ea4a36862b6d7ca36aa2fe7dc88793 Mon Sep 17 00:00:00 2001 From: Shatadal Das <168073457+shatadal-das@users.noreply.github.com> Date: Mon, 7 Apr 2025 12:14:25 +0530 Subject: [PATCH] Update type in `app.tsx` type `Component` has been replaced with type `ParentComponent`. it solves a type error in `index.tsx` file at `() => {props.children}}>{routes},` "Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes'.ts" --- ts-router-file-based/src/app.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts-router-file-based/src/app.tsx b/ts-router-file-based/src/app.tsx index fa018bf..4496b6c 100644 --- a/ts-router-file-based/src/app.tsx +++ b/ts-router-file-based/src/app.tsx @@ -1,7 +1,7 @@ -import { Suspense, type Component } from 'solid-js'; +import { Suspense, type ParentComponent } from 'solid-js'; import { A, useLocation } from '@solidjs/router'; -const App: Component = (props: { children: Element }) => { +const App: ParentComponent = (props: { children: Element }) => { const location = useLocation(); return (