Updated files to have type support & enabled strict mode

This commit is contained in:
Ari Liu 2024-10-19 23:28:31 +00:00
parent 89857c8792
commit 33ffdce5fd
Signed by: AhriVastaya
SSH Key Fingerprint: SHA256:B1V16w1/wkA2kWFt/YMDUqSAYIj6PpN99WCxVaK2yVo
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
function App() { function App() : JSX.Element {
return ( return (
<div> <div>
</div> </div>

View File

@ -1,8 +1,8 @@
import App from './App';
import React from 'react'; import React from 'react';
import ReactDOM from 'react-dom/client'; import ReactDOM from 'react-dom/client';
import App from './App';
const root = ReactDOM.createRoot( const root : ReactDOM.Root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement document.getElementById('root') as HTMLElement
); );

View File

@ -6,7 +6,7 @@
"dom.iterable", "dom.iterable",
"esnext" "esnext"
], ],
"allowJs": true, "allowJs": false,
"skipLibCheck": true, "skipLibCheck": true,
"esModuleInterop": true, "esModuleInterop": true,
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,