import { CharacterId } from "../.." ; type FetterInfoExcelConfigData = { "InfoBirthMonth" : number ; "InfoBirthDay" : number ; "AvatarNativeTextMapHash" : number ; "AvatarVisionBeforTextMapHash" : number ; "AvatarConstellationBeforTextMapHash" : number ; "AvatarTitleTextMapHash" : number ; "AvatarDetailTextMapHash" : number ; "AvatarAssocType" : string ; "CvChineseTextMapHash" : number ; "CvJapaneseTextMapHash" : number ; "CvEnglishTextMapHash" : number ; "CvKoreanTextMapHash" : number ; "AvatarVisionAfterTextMapHash" : number ; "AvatarConstellationAfterTextMapHash" : number ; "FetterId" : number ; "AvatarId" : CharacterId ; "OpenConds" : any [ ] ; "FinishConds" : object [ ] ; } ; const characterInfoSrc = require ( '../../GenshinData/ExcelBinOutput/FetterInfoExcelConfigData.json' ) as FetterInfoExcelConfigData [ ] ; const characterInfo = Object . fromEntries ( characterInfoSrc . map ( data => [ data . AvatarId , data ] ) ) as Record < CharacterId , FetterInfoExcelConfigData > ; export default characterInfo ;