TypeScript: Is it possible to get the return type of a generic function?

前端 未结 3 359
失恋的感觉
失恋的感觉 2020-12-17 16:27

I have exported a function from some module that looks like:

export function MyFunc() {
    return {
        foo: (in: A) => void
    }
}
         


        
3条回答
提交回复
热议问题