type RewardExcelConfigData = { "RewardId" : number ; "RewardItemList" : { "ItemId" : number ; "ItemCount" : number ; } [ ] ; } ; const rewardExcelConfigDataSrc = require ( '../../GenshinData/ExcelBinOutput/RewardExcelConfigData.json' ) as RewardExcelConfigData [ ] ; const rewardExcelConfigData = Object . fromEntries ( rewardExcelConfigDataSrc . map ( data => [ data . RewardId , data ] ) ) as { [ RewardId ] : RewardExcelConfigData ; } ; export default rewardExcelConfigData ;