How to get a more specific type from “object type” in flow?

前端 未结 0 633
無奈伤痛
無奈伤痛 2020-12-19 16:41

Well consider the following code:

class base {
    field: T;
}

type SpecificTy = {|
    val: number,
    field: string,
|}

class s         


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