为什么导出函数定义(tree.d.ts 文件)中不存在 ITreeArgs?
interface ITreeArgs {
mayHaveChildren: bool;
}
export function(args: ITreeArgs); <- The name 'ITreeArgs' does not exist in the current scope
这些都有效:
export function c(args: ITreeArgs); <- adding name works!
export function (args); <- removing type works!