ππ Script tag support for TypeScript.
Based from basarat/typescript-script with Minified Versions
Add the following lines at the bottom of your page:
<script src="https://cdn.jsdelivr.net/gh/rinminase/typescript-script/ts-services.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/rinminase/typescript-script/ts-transpiler.min.js"></script>
And then you can use script tags that load .ts
files or even have inline typescript
syntax:
<script type="text/typescript" src="script.ts"></script>
<script type="text/typescript">
setTimeout(()=>console.log('hello'));
</script>
<script type="text/typescript">
tags should be located above the transpiler and services.