Skip to content

Instantly share code, notes, and snippets.

@hansSchall
Created September 3, 2022 14:52
Show Gist options
  • Save hansSchall/e934e58f8b7448f9aae03d8f2ad6bbbc to your computer and use it in GitHub Desktop.
Save hansSchall/e934e58f8b7448f9aae03d8f2ad6bbbc to your computer and use it in GitHub Desktop.
simple typescript setup for browser apps
<!doctype html>
<html>
<head>
<script src="test.js"></script>
</head>
<body>
<div id="test"></div>
</body>
</html>
window.addEventListener("load",()=>{
document.querySelector("#test").innerText = "hello";
})
{
"compilerOptions": {
"target": "ES2022",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment