How to enforce narrowing to specific type of a typed const in typescript?

后端 未结 0 664
我寻月下人不归
我寻月下人不归 2021-02-01 19:40

My question is whether it is possible to use typeof to infer the actual type of a const variable, independent of the defined wider type?

If you assume that a nested objec

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