結果 : typescript define function in type