import { MatchExpectedGoalsFeed } from './OptaMatchStatsXG'; export const buildEmptyXGFeed = ( statKeys: string[] ): MatchExpectedGoalsFeed => ({ matchInfo: { id: '', contestant: [ { id: 'h', name: '-', shortName: '-', officialName: '-', code: '', position: 'home' }, { id: 'a', name: '-', shortName: '-', officialName: '-', code: '', position: 'away' } ] }, liveData: { lineUp: [ { contestantId: 'h', stat: statKeys.map(key => ({ type: key, value: '0' })) }, { contestantId: 'a', stat: statKeys.map(key => ({ type: key, value: '0' })) } ] } });