问题
My question is if there is operator overloading in typescript, if it exists I could give an example or a link where you can read about it.
回答1:
No it does not exist. It is very unlikely that it will exist unless there is a clear Spec on how it might be implemented in Pure JavaScript.
来源:https://stackoverflow.com/questions/36110070/does-typescript-have-operator-overloading