結果 : typescript defining a function type