結果 : typescript determine type of object