From 22d8c6f9b2d22f9000ad324a27586f760f1bb487 Mon Sep 17 00:00:00 2001 From: Sepp Wikramaratna-Clarke Date: Fri, 8 Oct 2021 20:57:19 +0100 Subject: [PATCH 1/2] fix: type cast root element as HTMLDivElement --- ts-bootstrap/src/index.tsx | 2 +- ts-minimal/src/index.tsx | 2 +- ts-router/src/index.tsx | 2 +- ts-windicss/src/index.tsx | 2 +- ts/src/index.tsx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ts-bootstrap/src/index.tsx b/ts-bootstrap/src/index.tsx index 38f2052..26f624e 100644 --- a/ts-bootstrap/src/index.tsx +++ b/ts-bootstrap/src/index.tsx @@ -10,4 +10,4 @@ import "./cheatsheet.scss"; import App from "./App"; -render(() => , document.getElementById("root")); +render(() => , document.getElementById("root") as HTMLDivElement); diff --git a/ts-minimal/src/index.tsx b/ts-minimal/src/index.tsx index cef9cfe..d3d2464 100644 --- a/ts-minimal/src/index.tsx +++ b/ts-minimal/src/index.tsx @@ -2,5 +2,5 @@ import { render } from "solid-js/web"; import App from "./App"; -render(() => , document.getElementById("root")); +render(() => , document.getElementById("root") as HTMLDivElement); diff --git a/ts-router/src/index.tsx b/ts-router/src/index.tsx index a864b1d..f3d209e 100644 --- a/ts-router/src/index.tsx +++ b/ts-router/src/index.tsx @@ -10,5 +10,5 @@ render( ), - document.getElementById("root") + document.getElementById("root") as HTMLDivElement ); diff --git a/ts-windicss/src/index.tsx b/ts-windicss/src/index.tsx index 36a0d77..c748dbc 100644 --- a/ts-windicss/src/index.tsx +++ b/ts-windicss/src/index.tsx @@ -3,4 +3,4 @@ import { render } from "solid-js/web"; import App from "./App"; -render(() => , document.getElementById("root")); +render(() => , document.getElementById("root") as HTMLDivElement); diff --git a/ts/src/index.tsx b/ts/src/index.tsx index a9259e5..7f01fce 100644 --- a/ts/src/index.tsx +++ b/ts/src/index.tsx @@ -3,4 +3,4 @@ import { render } from "solid-js/web"; import "./index.css"; import App from "./App"; -render(() => , document.getElementById("root")); +render(() => , document.getElementById("root") as HTMLDivElement); From ae0bf9896948a3c11aec8e970f630c9b25ef354d Mon Sep 17 00:00:00 2001 From: Sepp Wikramaratna-Clarke Date: Wed, 13 Oct 2021 10:45:01 +0100 Subject: [PATCH 2/2] fix: use HTMLElement instead of HTMLDivElement --- ts-bootstrap/src/index.tsx | 2 +- ts-minimal/src/index.tsx | 2 +- ts-router/src/index.tsx | 2 +- ts-windicss/src/index.tsx | 2 +- ts/src/index.tsx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ts-bootstrap/src/index.tsx b/ts-bootstrap/src/index.tsx index 26f624e..9c3d3c1 100644 --- a/ts-bootstrap/src/index.tsx +++ b/ts-bootstrap/src/index.tsx @@ -10,4 +10,4 @@ import "./cheatsheet.scss"; import App from "./App"; -render(() => , document.getElementById("root") as HTMLDivElement); +render(() => , document.getElementById("root") as HTMLElement); diff --git a/ts-minimal/src/index.tsx b/ts-minimal/src/index.tsx index d3d2464..5e10358 100644 --- a/ts-minimal/src/index.tsx +++ b/ts-minimal/src/index.tsx @@ -2,5 +2,5 @@ import { render } from "solid-js/web"; import App from "./App"; -render(() => , document.getElementById("root") as HTMLDivElement); +render(() => , document.getElementById("root") as HTMLElement); diff --git a/ts-router/src/index.tsx b/ts-router/src/index.tsx index f3d209e..84f8dd6 100644 --- a/ts-router/src/index.tsx +++ b/ts-router/src/index.tsx @@ -10,5 +10,5 @@ render( ), - document.getElementById("root") as HTMLDivElement + document.getElementById("root") as HTMLElement ); diff --git a/ts-windicss/src/index.tsx b/ts-windicss/src/index.tsx index c748dbc..cb938fc 100644 --- a/ts-windicss/src/index.tsx +++ b/ts-windicss/src/index.tsx @@ -3,4 +3,4 @@ import { render } from "solid-js/web"; import App from "./App"; -render(() => , document.getElementById("root") as HTMLDivElement); +render(() => , document.getElementById("root") as HTMLElement); diff --git a/ts/src/index.tsx b/ts/src/index.tsx index 7f01fce..07dd377 100644 --- a/ts/src/index.tsx +++ b/ts/src/index.tsx @@ -3,4 +3,4 @@ import { render } from "solid-js/web"; import "./index.css"; import App from "./App"; -render(() => , document.getElementById("root") as HTMLDivElement); +render(() => , document.getElementById("root") as HTMLElement);