How to create an instance from function type declaration in typescript?

前端 未结 0 978
粉色の甜心
粉色の甜心 2021-01-22 18:59

I have a declaration like below,

let f: { (): number; (page: number): void; };

How can I create an instance for this ?

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