TypeSript: narrow down from a broader type

后端 未结 0 717
我寻月下人不归
我寻月下人不归 2020-12-02 23:56

How can I rewrite this code to avoid TypeScript error:

const level: "debug" | "info" | "warn" | "error" | "custom         


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