A Typescript 'Hello World' example project
npm
TypeScript is a typed superset of JavaScript that compiles down to plain JavaScript, which also supports modern ES2015+ features.
<!-- index.html -->
<html>
<body>
<script src="./index.ts"></script>
</body>
</html>
// index.ts
import message from './message'
console.log(message)
// message.ts
export default 'Hello, world
'
npm install
npm run dev
Local server is accessible at [http://localhost:1234]