結果 : typescript define object as function parameter