Using TypeScript – in your JavaScript projects – Types are not exposed through the language.



Using TypeScript – in your JavaScript projects – Types are not exposed through the language.

0 1


UtahJS2015-TypeScript

Presentation and examples from my presentation at UtahJS 2015 conference on TypeScript

On Github joeskeen / UtahJS2015-TypeScript

Using TypeScript

in your JavaScript projects

By Joe Skeen / @joeskeenjr

About Me

Passionate developer and evangelist

Have worked with JavaScript,TypeScript, C#, Java, and ahandful of other languages

Places I've worked for

Community

DefinitelyTyped top 100 contributors
https://hackhands.com/joeskeen/

So... What is TypeScript?

Open-source language

Superset of JavaScript

Adds ES6+ features

Adds optional static typing

A Productivity Tool

To help you write better JavaScript

We don't need no stinking types in JavaScript!

There are already types in JavaScript!

  • boolean
  • number
  • string
  • object
  • undefined

Types are not exposed through the language.

TypeScript provides a gradual typing system for typing where you need it.

Why?

Sometimes JavaScript projects start small...

...but they grow up.

Why?

Low barrier to entry

Your existing JavaScript code is already valid TypeScript

https://github.com/borisyankov/DefinitelyTyped

http://definitelytyped.org/tsd/

Enough talk, let's see code!

Questions

The End

https://github.com/joeskeen

https://hackhands.com/joeskeen

Using TypeScript in your JavaScript projects By Joe Skeen / @joeskeenjr