Is there a way to derive a flow type from an object type, making optional properties not optional?

前端 未结 0 1230
逝去的感伤
逝去的感伤 2020-11-30 02:12

Given some type containing optional properties:

type Obj = {
  a: string,
  b: ?string,
  c?: string,
  d?: ?string,
  e: ?string | void,
}

I

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