Is there a way to solve a type declaration that accepts a union of a string and a function?

前端 未结 0 1805
被撕碎了的回忆
被撕碎了的回忆 2020-12-20 17:50

I\'ve this type definition, incomplete at the moment:

export type Type4 = (arg1?: Type2 | Type3, arg2?: Type3) => string | undefined;

export default funct         


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