Type guard failed when using union typed value for props

后端 未结 0 442
春和景丽
春和景丽 2021-02-12 10:34

I have the below code snippet:

interface PluginHook {
    onStoreCreated?: (p1: number) => void;
    onModel?: (p2: stri         


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