Skip to content

Commit e1824db

Browse files
committed
Do not require all CustomParticipant fields
1 parent d250775 commit e1824db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/input.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import { Participant } from './storage';
66
import { GrandFinalType, Id, RoundRobinMode, SeedOrdering, StageType } from './unions';
77

88
/**
9-
* A participant as it would be persisted in the storage, but with extra fields.
9+
* An item of the seeding with a `name` and extra fields.
1010
*/
11-
export type CustomParticipant<ExtraFields = Record<string, unknown>> = Participant & ExtraFields;
11+
export type CustomParticipant<ExtraFields = Record<string, unknown>> = Pick<Participant, 'name'> & ExtraFields;
1212

1313
/**
1414
* The seeding for a stage.
1515
*
1616
* Each element represents a participant, which can be:
17-
* - A full object, with possibly extra fields.
17+
* - An object with a `name` and extra fields.
1818
* - Its name (string).
1919
* - Its ID (only integers are supported, for backwards compatibility).
2020
* - Or a BYE: `null`.

0 commit comments

Comments
 (0)