type AvatarSkillExcelConfigData = { "Id" : number ; "NameTextMapHash" : number ; "AbilityName" : "" ; "DescTextMapHash" : number ; "SkillIcon" : string ; "CdTime" ? : number ; "CostElemType" : string ; "CostElemVal" ? : number ; "MaxChargeNum" : number ; "TriggerID" : number ; "LockShape" : string ; "LockWeightParams" : number [ ] ; "IsAttackCameraLock" : boolean ; "BuffIcon" : string ; "ProudSkillGroupId" : number ; "GlobalValueKey" : string ; } ; const talentsSrc = require ( '../../GenshinData/ExcelBinOutput/AvatarSkillExcelConfigData.json' ) as AvatarSkillExcelConfigData [ ] ; const talents = Object . fromEntries ( talentsSrc . map ( data => [ data . Id , data ] ) ) as { [ id ] : AvatarSkillExcelConfigData ; } ; export default talents ;