New TypeScript Website Launched |
Written by Ian Elliot | |||
Monday, 17 August 2020 | |||
A new website for TypeScript has been announced by Microsoft. The new site includes better code samples, improved visibility of JavaScript, and the use of a new TypeScript markup format. TypeScript is a superset of JavaScript that adds optional static types which can be checked by the TypeScript compiler to catch common errors in your programs. TypeScript Website has launched on typescriptlang.org. Orta Therox, an engineer on the TypeScript compiler, said: "The new version of the website was built out of a desire to make the documentation for TypeScript feel as expansive as its type-system, with a design that fits modern Microsoft styles." The hope is that the new homepage will make it easier to understand TypeScript's place in the JavaScript ecosystem. The TypeScript logo has also been redesigned to more closely reflect the unofficial logo in use within the community. Other design changes for the updated site include completely separate navigation for mobile and desktop versions, and a search option for the documentation. The Playground code explorer area has been redesigned to include interactive interwoven code samples within the existing documentation. Other changes to the playground include compression of sharable URLs so they're not too long; a more comprehensive set of examples teaching TypeScript; and the ability to extend the playground using user plugins. One nice touch is the ability to write in either JavaScript or TypeScript and see the equivalent .JS or .d.ts output. Types are also now downloaded from npm. In more practical terms, the code samples are being moved to use a new TypeScript markup format called twoslash. Twoslash code samples use the TypeScript compiler to generate accurate error messages, get compiler outputs, and query hover tooltips for quick-info. This information can then be rendered in a static page for code samples. One of the biggest areas for improvement was documentation for the collection of over 100 compiler flags. The new website also includes a long-form description for all the 100+ compiler flags and examples are compiler-backed, meaning that the examples show exactly what happens when a particular config is changed.
More InformationRelated ArticlesTypeScript 3.6 Generators Get Stricter TypeScript 3.5 Adds Smart Select TypeScript 3.2 Gets Stricter Checking TypeScript 3.1 Adds Mappable Tuples TypeScript 3.0 Adds Project References To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.
Comments
or email your comment to: comments@i-programmer.info <ASIN:1871962579> <ASIN:1871962560> <ASIN:1871962528> <ASIN:1871962625> |
|||
Last Updated ( Monday, 17 August 2020 ) |