結果 : typescript define a function in interface