Skip to content

Commit

Permalink
Remove the difference between Seeding and SeedingIds
Browse files Browse the repository at this point in the history
  • Loading branch information
Drarig29 committed Nov 3, 2020
1 parent 87f8d6d commit 637c9c2
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ export type SeedOrdering = 'natural' | 'reverse' | 'half_shift' | 'reverse_half_
'groups.effort_balanced' | 'groups.seed_optimized' | 'groups.bracket_optimized';

/**
* An array of participants (name or `null` to introduce a BYE), given to the library to create a stage.
* The seeding for a stage.
*
* Each element represents a participant, and can be its name, its id or a BYE (`null`).
*/
export type Seeding = (string | null)[];

/**
* An array of participants (id or `null` to introduce a BYE), given to the library to edit a stage.
*/
export type SeedingIds = (number | null)[];
export type Seeding = (string | number | null)[];

/**
* The only supported type of stage.
Expand All @@ -37,7 +34,7 @@ export declare interface InputStage {
type: StageType,

/** Contains participants (name or id) or `null` for BYEs. */
seeding?: Seeding | SeedingIds,
seeding?: Seeding,

/** Contains optional settings special to each stage type. */
settings?: StageSettings,
Expand Down

0 comments on commit 637c9c2

Please sign in to comment.