Microsoft has launched TypeScript 2.0 as a release candidate today. The service has previously been in beta. However, while it now moves to release candidate, there are no new features added. TypeScript 2.0 does come with upgraded new features compared to the previous TypeScript version. Also, Microsoft points to some features added since the beta.
TypeScript 2.0 also scores support for globs, something users of the beta have been asking for. Globs give users the ability to write wildcards for paths. The company says you can make them granular but not have to waste time writing.
While announcing the feature, Microsoft also discussed String literal types:
“String literal types are a feature we showed off back in 1.8, and were tremendously useful. Like you saw above, we were able to leverage them to bring you tagged unions. We wanted to give some more love to types other than just string. In 2.0, each unique boolean, number, and enum member will have its own type!”
Until today, the second generation of TypeScript has been in beta form. Microsoft released the beta back in July. Among the new features in that release were non-nullable types, Easier Module Declarations, and Control Flow Analysis.