19 lines
525 B
TypeScript
19 lines
525 B
TypeScript
import type { LeagueConfigFormModel } from '../types/LeagueConfigFormModel';
|
|
import type { LeagueScoringPresetViewData } from './LeagueScoringPresetViewData';
|
|
|
|
export interface CustomPointsConfig {
|
|
racePoints: number[];
|
|
poleBonusPoints: number;
|
|
fastestLapPoints: number;
|
|
leaderLapPoints: number;
|
|
}
|
|
|
|
/**
|
|
* ViewData for ScoringConfiguration
|
|
*/
|
|
export interface ScoringConfigurationViewData {
|
|
config: LeagueConfigFormModel['scoring'];
|
|
presets: LeagueScoringPresetViewData[];
|
|
customPoints?: CustomPointsConfig;
|
|
}
|