Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can TypeScript be used in conjunction with PhoneGap (or similar)?

So I just learned about TypeScript - hurrah! I'm so happy I can finally join the HTML5 party. My Object Oriented brain is just not compatible with JavaScript ...

However, I immediately wondered if TypeScript actually helps people like me. Sure, I can write JavaScript compatible software with a nice C# style syntax with interfaces & classes, but can it actually be used on anything other than browser apps?

What I'm asking is, can a TypeScript generated JavaScript library be used to create cross-platform mobile apps, say with PhoneGap (or similar framework)?

like image 931
Dr. Andrew Burnett-Thompson Avatar asked Nov 02 '12 16:11

Dr. Andrew Burnett-Thompson


1 Answers

Of course.

Typescript generates 100% ordinary Javascript; you can use its output anywhere.

like image 100
SLaks Avatar answered Oct 11 '22 13:10

SLaks