結果 : typescript extract type from object