How to type a fixed-length generator in typescript?

后端 未结 0 1964
野的像风
野的像风 2020-12-16 23:15

I have a Vector2 class in typescript below.

// Vector2.ts
class Vector2 {
  constructor (public x, public y) {
    this         


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