How to use immer to value to nested fields which have optional parents, in typescript?

前端 未结 0 1607
春和景丽
春和景丽 2021-02-08 13:06

When I have an object which has nested optional fields, like:

type FormState = {
  aaa?: {
    bbb?: {
      ccc?: number
    }
  }
}

When I want

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