15

TypeScript comes with 3 JavaScript compiled files in its 'bin' folder:

  • tsc.js -- command-line-run compiler itself;
  • typescript.js -- ??
  • typescriptServices.js -- ??

I guess one of those should be 'TypeScript language service', but what's the other one?

2 Answers 2

15

typescript.js is what's used by some random internal tools. There's not any real external-facing purpose for it, though for example you could use it to build something similar to the TypeScript Playground.

tsc.js is typescript.js plus the command-line front-end.

typescriptServices.js is typescript.js plus the language service (e.g. for providing Intellisense features)

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

Comments

-1

typescriptServices can also be used to transpile TS files on the fly, in node, or in the browser.

1 Comment

in the browser both have the same limitation. Both typescript.js and typescriptServices.js can be used straight forwardly to transpile and create individual SourceFiles and both will fail the same way while working with Program, TypeChecker, Transformation, LanguageService, etc. For that to work you need to provide a custom COmpilerHost, LanguageServiceHost, etc to support the browser. This library is about that.

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.