From d1ba0590a43f3c25a25522b1b2c9bf51a17fbde4 Mon Sep 17 00:00:00 2001
From: dayuan <2191516303@qq.com>
Date: Tue, 14 Jun 2022 21:40:40 +0800
Subject: [PATCH] chore(create-vite): use Type assertion in preact-ts (#8579)
---
packages/create-vite/template-preact-ts/src/main.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/create-vite/template-preact-ts/src/main.tsx b/packages/create-vite/template-preact-ts/src/main.tsx
index 812f602e33bc95..e0ce3e9980eecd 100644
--- a/packages/create-vite/template-preact-ts/src/main.tsx
+++ b/packages/create-vite/template-preact-ts/src/main.tsx
@@ -2,4 +2,4 @@ import { render } from 'preact'
import { App } from './app'
import './index.css'
-render(, document.getElementById('app')!)
+render(, document.getElementById('app') as HTMLElement)