@wca/helpers
Version:
Helpers and class definitions for WCA and WCIF
23 lines (22 loc) • 611 B
TypeScript
import { AttemptResult } from './attemptResult';
import { RankingType } from './rankingType';
interface RankingQualification {
whenDate: string;
type: 'ranking';
resultType: RankingType;
level: number;
}
interface AttemptResultQualification {
when: string;
type: 'attemptResult';
resultType: RankingType;
level: AttemptResult;
}
interface AnyResultQualificiation {
when: string;
type: 'anyResult';
resultType: RankingType;
level: AttemptResult;
}
export type Qualification = RankingQualification | AttemptResultQualification | AnyResultQualificiation;
export {};