@adonsio/adn-tournament
Version:
This packages allows you to generate Tournament Brackets in **Angular v12.2.4**. It's currently **work in progress** so use it at your own risk.
12 lines (11 loc) • 332 B
TypeScript
export interface AdnTournament {
rounds: AdnRound[];
}
export interface AdnRound {
/**
* The type determines where in which branch to place a match.
* SingleElimination-Trees only consist of a winnerbracket and a final
*/
type: 'Winnerbracket' | 'Loserbracket' | 'Final';
matches: any[];
}