結果 : typescript declare function in type