import type { CompetitionFormat, CompetitionId, CompletedSeriesProjection, InProgressSeriesProjection, RoundRobinCompetitionFormat, SeriesOutcome, TeamId, } from "../src/index.js"; type Expect = T; type IsAssignable = [From] extends [To] ? true : false; type Not = T extends true ? false : true; export type TeamIdCannotBeUsedAsCompetitionId = Expect< Not> >; export type CompletedSeriesRequiresOutcome = Expect< IsAssignable >; export type InProgressSeriesCannotExposeOutcome = Expect< IsAssignable >; export type LegacyBracketModeIsNotACompetitionFormat = Expect< Not> >; type ExplicitRoundRobinPairing = NonNullable< RoundRobinCompetitionFormat["pairings"] >[number]; export type ExplicitRoundRobinPairingsAreOptional = Expect< IsAssignable<{}, Pick> >; export type ExplicitRoundRobinPairingsAreTeamIdBased = Expect< IsAssignable< ExplicitRoundRobinPairing, { roundNumber: number; matchNumber: number; teamAId: TeamId; teamBId: TeamId; } > >;