Skip to content
Script tag support for TypeScript
JavaScript
Branch: master
Clone or download

Latest commit

Latest commit 163388b Aug 4, 2015

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit May 12, 2015
README.md Update README.md Aug 3, 2015
transpiler.js Create transpiler.js May 12, 2015

README.md

typescript-script

Script tag support for TypeScript

Usage

Add the following lines at the bottom of your page:

<script src="https://rawgit.com/Microsoft/TypeScript/master/lib/typescriptServices.js"></script>
<script src="https://rawgit.com/basarat/typescript-script/master/transpiler.js"></script>

And then you can use script tags that load .ts files or even have typescript inline:

<script type="text/typescript" src="script.ts"></script>
<script type="text/typescript">
    setTimeout(()=>console.log('hello'));
</script>

Sample

Plunker

http://plnkr.co/edit/j2pzXw?p=preview

You can’t perform that action at this time.