結果 : typescript define a function type