結果 : typescript extract type from nested object