2

Couldn't Typescript simply be a JavaScript library to include with other libraries such as Angular? Is that what it is? Wouldn't being a JS library give greater support for outputting ES5 specific JS?

4
  • And what would that library do exactly? Commented Jun 1, 2016 at 4:40
  • 1
    The same exact thing I just wanted to know whether a library would be capable of doing precisely the same thing or if its not even possible and why Commented Jun 1, 2016 at 4:43
  • Typescript is more object oriented approach. Also you can debug it in IDE. Commented Jun 1, 2016 at 4:43
  • 1
    Well, Typescript does exactly nothing at runtime (in the browser or in Node). It is a language and has a compiler that outputs Javascript (and if you want, you can target ES5, too). Commented Jun 1, 2016 at 4:51

1 Answer 1

5

Librairies are runtime objects.

Typescript is a language that extends Javascript with new keywords, such as types.

These keywords need to be parsed and compiled/transpiled to Javascript before being executed by the Javascript engine.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.