TypeScript: Initialize interface like array (without specifying member name)

后端 未结 0 1010
无人及你
无人及你 2021-01-18 02:19

I have an interface:

interface Rect {
        width: number
        height: number
    }

I can initialize it like that:

const          


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