Is it possible to create types that result from math operations in Typescript?

后端 未结 0 1803
再見小時候
再見小時候 2021-01-25 23:43

I have some variables which are all numbers in Typescript and I want to make some calculations on them. I would like if possible to do something like this:

example:

<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题