Initialize empty object in typescript with Record type

前端 未结 0 1324
小蘑菇
小蘑菇 2021-01-22 02:27

How to define and initialize an object that can be empty.

With types

type Plan = \'plan1\' | \'plan1\';

interface IPlan {
    name: string
}

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