結果 : typescript declare type of function