The question is valid as CodePen reveals three containers, one for HTML, one for CSS and one for JavaScript, in its default interface.
To enable TypeScript input, go to Settings, select JavaScript preprocessor and choose TypeScript. Other available preprocessors are LiveScript, CoffeeScript (billed as a "simple and elegant way" to write JavaScript) and Babel.
Note that CodePen will run TypeScript without type-checking errors blocking execution.
No comments:
Post a Comment