写法

2019-06-15  本文已影响0人  韩梅梅梅梅
fun $a(){}
fun $b(){}
fun initC(){
      return{
            a(){
                return $a();
            },
            b(){
                return $b();
            }
      }
}

export type C = ReturnType<typeof initC>;
上一篇 下一篇

猜你喜欢

热点阅读