ニュース

Using generics in TypeScript is very similar to using them in, for example, C#. This method calls a generic function, specifying the data type to be used (string, in this case): res = ...
Next TypeScript release, due February 25, will support a limited form of checking against conditional and indexed acces types in return statements.