SlideShare a Scribd company logo
TypeScript
Introduction
By, Travis van der Font
What is TypeScript?
A language that compiles onto JavaScript
May be used to develop JavaScript applications
for client-side or server-side
• Web browser (client)
• NodeJS (server)
That’s all !
A bit more about TypeScript…
• First appearance: October of 2012 (version 0.8)
• First stable release: January of 2016 (version 1.0)
• License: Apache License 2.0
(permissive free software license)
Can Cannot Must
• Commercial Use
• Modify
• Distribute
• Sub-license
• Private Use
• Place Warranty
• Hold Liable
• Use Trademark
• Include Copyright
• Include License
• State Changes
• Include Notice
A bit more about TypeScript…
• First appearance: October of 2012 (version 0.8)
• First stable release: January of 2016 (version 1.0)
• License: Apache License 2.0
(permissive free software license)
• Created & Developed by: Microsoft
TypeScript compiler itself was written in TypeScript
and then transcompiled into JavaScript.
Technicalities of TypeScript
• Target compatibility with ECMAScript 3 (ES3)
• Strict superset of ECMAScript 2015 (ES5)
• ECMAScript 6 (ES6) support
Technicalities of TypeScript
• Target compatibility with ECMAScript 3 (ES3)
• Strict superset of ECMAScript 2015 (ES5)
• ECMAScript 6 (ES6) support
So what does this mean?
• It’s compatible with most modern browsers
• Supports features many browsers don’t have yet!
Why TypeScript?
• Build large scale applications
• Cross platform
any browser, any host, any OS !
• Static Typing (ʘ‿ʘ)
• Open Source
cost you not to begin creating!
• Compatible with existing libraries / modules
NodeJS, jQuery, Underscore, Backbone, Require, etc..
How does TypeScript work?
• Transpiles from TypeScript syntax into
JavaScript ES5 (JetBrains, Visual Studio, NPM)
contains no runtime cost!
- www.npmjs.com/package/typescript
• Yes you can!
Automatically compile TypeScript to JavaScript
on the fly (in the browser) with Tag Support
- www.github.com/niutech/typescript-compile
- www.github.com/basarat/typescript-script
Core features of TypeScript
• Gradual Typing
Catch errors at compile time vs. runtime
• Object-Oriented features on JavaScript
Syntax sugar - not real OOP (still prototype inheritance)
- Namespaces
- Interfaces
- Classes
- Constructors
- Private & Static fields (not truly denying access but will throw an error)
- Methods (basically a function)
• Retains functional aspects of JavaScript
TypeScript's Typing Support
• Boolean
• Number
• String
• Any
• Array
• Enum
• Void
• Tuple
And now.. that’s all!
Time for some examples.
“It is just JavaScript - just with the seat belt
fastened.” - Tero Parviainen
www.travisfont.com

More Related Content

PPTX
TypeScript Jump Start
PPTX
Next-generation JavaScript - OpenSlava 2014
PPTX
Microfrontends Monoreops & Trunkbased based
PDF
Custom angular libraries
PDF
Using type script to build better apps
PPTX
Typescript overview
PPTX
Typescript: JS code just got better!
PPTX
Angular, ASP.NET Core, and Visual Studio Code - Oh My!
TypeScript Jump Start
Next-generation JavaScript - OpenSlava 2014
Microfrontends Monoreops & Trunkbased based
Custom angular libraries
Using type script to build better apps
Typescript overview
Typescript: JS code just got better!
Angular, ASP.NET Core, and Visual Studio Code - Oh My!

What's hot (20)

PPTX
Mono Repo
PDF
Monorepo at Pinterest
PDF
Swift for back end: A new generation of full stack languages?
PDF
WebAssembly Fundamentals
PDF
PHP - Programming language war, does it matter
PPTX
Advantages and disadvantages of a monorepo
PDF
Why and How You Should Move from PHP to Node.js
PPTX
Posladkajmo si JavaScript z uporabo TypeScript a
PDF
NodeJS and MEAN stack - II SorocabaJS
PPTX
SharePoint Saturday Johannesburg 2017
PPTX
Using Javascript in today's world
PPTX
Windows 8 javascript apps – getting it right
PDF
Building a Modern JavaScript Framework by James Milner
PPTX
Developing Client-side Application using Visual Studio Code and Nodejs
PPTX
Nodejs
PDF
Introduction to TypeScript
PDF
Getting Started with the TypeScript Language
PPTX
Brief overview of TypeScript - Ljubljana JavaScript Users Group
PDF
Single Sign On in Ruby - Enterprise Ready!
PPTX
Open source day in .NET
Mono Repo
Monorepo at Pinterest
Swift for back end: A new generation of full stack languages?
WebAssembly Fundamentals
PHP - Programming language war, does it matter
Advantages and disadvantages of a monorepo
Why and How You Should Move from PHP to Node.js
Posladkajmo si JavaScript z uporabo TypeScript a
NodeJS and MEAN stack - II SorocabaJS
SharePoint Saturday Johannesburg 2017
Using Javascript in today's world
Windows 8 javascript apps – getting it right
Building a Modern JavaScript Framework by James Milner
Developing Client-side Application using Visual Studio Code and Nodejs
Nodejs
Introduction to TypeScript
Getting Started with the TypeScript Language
Brief overview of TypeScript - Ljubljana JavaScript Users Group
Single Sign On in Ruby - Enterprise Ready!
Open source day in .NET
Ad

Viewers also liked (16)

PDF
Building End to-End Web Apps Using TypeScript
PPT
Learning typescript
PDF
Typescript - MentorMate Academy
PPTX
Introduction about type script
PDF
Introduction to Type Script by Sam Goldman, SmartLogic
PPTX
Type script
PDF
Introduction to Angular with TypeScript for .NET Developers
PPTX
Typescript in 30mins
PDF
TypeScript - An Introduction
PPTX
TypeScript Overview
PPTX
Typescript 101 introduction
PPTX
Introduction to TypeScript
PPTX
Getting started with typescript
ODP
Getting started with typescript and angular 2
PDF
TypeScript: coding JavaScript without the pain
PDF
Introduction to TypeScript by Winston Levi
Building End to-End Web Apps Using TypeScript
Learning typescript
Typescript - MentorMate Academy
Introduction about type script
Introduction to Type Script by Sam Goldman, SmartLogic
Type script
Introduction to Angular with TypeScript for .NET Developers
Typescript in 30mins
TypeScript - An Introduction
TypeScript Overview
Typescript 101 introduction
Introduction to TypeScript
Getting started with typescript
Getting started with typescript and angular 2
TypeScript: coding JavaScript without the pain
Introduction to TypeScript by Winston Levi
Ad

Similar to TypeScript Introduction (20)

PDF
TYPESCRIPT-ARCHI.pdfbsjjsjsjsjjsjjsjsjjs
PPT
TypeScript - Javascript done right
PPTX
chap01 - Introduction to JavaScript first.pptx
PPTX
Angular2.0@Shanghai0319
PPTX
ASP.NET Core: The best of the new bits
PPTX
Top 10 frameworks of node js
PDF
SGCE 2015 REST APIs
PDF
APIs distribuidos con alta escalabilidad
PPTX
Node ts1
PDF
SPUnite17 TypeScript for SharePoint Developers
PPTX
Radu vunvulea building and testing windows 8 metro style applications using ...
PDF
JavaScript: Past, Present, Future
PPT
RAP vs GWT Which AJAX Technology is for you?
PPT
.Net overviewrajnish
PPT
TypeScript for Alfresco and CMIS - Alfresco DevCon 2012 San Jose
PPTX
Javascript as universal language
PDF
Blazor - The New Silverlight?
PDF
The tools & technologies behind Resin.io
PPTX
Web development revolution
PPTX
TypeScript VS JavaScript.pptx
TYPESCRIPT-ARCHI.pdfbsjjsjsjsjjsjjsjsjjs
TypeScript - Javascript done right
chap01 - Introduction to JavaScript first.pptx
Angular2.0@Shanghai0319
ASP.NET Core: The best of the new bits
Top 10 frameworks of node js
SGCE 2015 REST APIs
APIs distribuidos con alta escalabilidad
Node ts1
SPUnite17 TypeScript for SharePoint Developers
Radu vunvulea building and testing windows 8 metro style applications using ...
JavaScript: Past, Present, Future
RAP vs GWT Which AJAX Technology is for you?
.Net overviewrajnish
TypeScript for Alfresco and CMIS - Alfresco DevCon 2012 San Jose
Javascript as universal language
Blazor - The New Silverlight?
The tools & technologies behind Resin.io
Web development revolution
TypeScript VS JavaScript.pptx

Recently uploaded (20)

PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
cuic standard and advanced reporting.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Encapsulation theory and applications.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Machine learning based COVID-19 study performance prediction
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Approach and Philosophy of On baking technology
PDF
MIND Revenue Release Quarter 2 2025 Press Release
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
cuic standard and advanced reporting.pdf
Programs and apps: productivity, graphics, security and other tools
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Building Integrated photovoltaic BIPV_UPV.pdf
Encapsulation theory and applications.pdf
Spectral efficient network and resource selection model in 5G networks
Machine learning based COVID-19 study performance prediction
Dropbox Q2 2025 Financial Results & Investor Presentation
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Reach Out and Touch Someone: Haptics and Empathic Computing
Understanding_Digital_Forensics_Presentation.pptx
MYSQL Presentation for SQL database connectivity
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Review of recent advances in non-invasive hemoglobin estimation
Approach and Philosophy of On baking technology
MIND Revenue Release Quarter 2 2025 Press Release

TypeScript Introduction

  • 2. What is TypeScript? A language that compiles onto JavaScript May be used to develop JavaScript applications for client-side or server-side • Web browser (client) • NodeJS (server)
  • 4. A bit more about TypeScript… • First appearance: October of 2012 (version 0.8) • First stable release: January of 2016 (version 1.0) • License: Apache License 2.0 (permissive free software license) Can Cannot Must • Commercial Use • Modify • Distribute • Sub-license • Private Use • Place Warranty • Hold Liable • Use Trademark • Include Copyright • Include License • State Changes • Include Notice
  • 5. A bit more about TypeScript… • First appearance: October of 2012 (version 0.8) • First stable release: January of 2016 (version 1.0) • License: Apache License 2.0 (permissive free software license) • Created & Developed by: Microsoft TypeScript compiler itself was written in TypeScript and then transcompiled into JavaScript.
  • 6. Technicalities of TypeScript • Target compatibility with ECMAScript 3 (ES3) • Strict superset of ECMAScript 2015 (ES5) • ECMAScript 6 (ES6) support
  • 7. Technicalities of TypeScript • Target compatibility with ECMAScript 3 (ES3) • Strict superset of ECMAScript 2015 (ES5) • ECMAScript 6 (ES6) support So what does this mean? • It’s compatible with most modern browsers • Supports features many browsers don’t have yet!
  • 8. Why TypeScript? • Build large scale applications • Cross platform any browser, any host, any OS ! • Static Typing (ʘ‿ʘ) • Open Source cost you not to begin creating! • Compatible with existing libraries / modules NodeJS, jQuery, Underscore, Backbone, Require, etc..
  • 9. How does TypeScript work? • Transpiles from TypeScript syntax into JavaScript ES5 (JetBrains, Visual Studio, NPM) contains no runtime cost! - www.npmjs.com/package/typescript • Yes you can! Automatically compile TypeScript to JavaScript on the fly (in the browser) with Tag Support - www.github.com/niutech/typescript-compile - www.github.com/basarat/typescript-script
  • 10. Core features of TypeScript • Gradual Typing Catch errors at compile time vs. runtime • Object-Oriented features on JavaScript Syntax sugar - not real OOP (still prototype inheritance) - Namespaces - Interfaces - Classes - Constructors - Private & Static fields (not truly denying access but will throw an error) - Methods (basically a function) • Retains functional aspects of JavaScript
  • 11. TypeScript's Typing Support • Boolean • Number • String • Any • Array • Enum • Void • Tuple
  • 12. And now.. that’s all! Time for some examples. “It is just JavaScript - just with the seat belt fastened.” - Tero Parviainen www.travisfont.com