export const func1: Function = (): boolean => true;
在上一行,func1为Function
。如果要使用如下所示的默认导出,如何将默认导出声明为Function ??
export default (): boolean => true;
答案 0 :(得分:1)
您可以简单地取消内联值:
const func1: Function = (): boolean => true;
export default func1;