ITreeArgs がエクスポート関数定義 (tree.d.ts ファイル) に存在しないのはなぜですか?
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!