11.09.2015 Views

Typescript Deep Dive by Basarat Ali Syed

Typescript Deep Dive by Basarat Ali Syed

Typescript Deep Dive by Basarat Ali Syed

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

TypeScript <strong>Deep</strong> <strong>Dive</strong><br />

Instead of using the official stable TypeScript compiler we will be presenting a lot of new stuff in this book that may not be<br />

released. For this purpose we recommend using nightly typescript versions.<br />

npm install -g typescript@next<br />

TypeScript definitions<br />

TypeScript has a concept of a declaration file for external JavaScript code bases. High quality files exist for nearly 90% of<br />

the top JavaScript libraries out there in a project called Definition Typed. You will need tsd to get these defintions. Don't<br />

worry, we will explain what this means later ... just install for now:<br />

npm install -g tsd<br />

With a dev setup out of the way lets jump into TypeScript syntax.<br />

Fork me on github<br />

Gettting Started<br />

6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!