Open torokmark opened 11 years ago
number and string types in TypeScript do not implement IComparable.
We can solve this problem, with interfaces:
interface String extends IComparable { }
String.prototype.compareTo = function(..) { ... };
number and string types in TypeScript do not implement IComparable.