Files
lolympus-tournament-support/packages/contracts/src/ids.ts
T

22 lines
875 B
TypeScript

declare const contractIdBrand: unique symbol;
export type BrandedId<Name extends string> = string & {
readonly [contractIdBrand]: Name;
};
export type CommunityId = BrandedId<"CommunityId">;
export type MatchId = BrandedId<"MatchId">;
export type CompetitionId = BrandedId<"CompetitionId">;
export type TeamId = BrandedId<"TeamId">;
export type UserId = BrandedId<"UserId">;
export type SeriesId = BrandedId<"SeriesId">;
export type GameSlotId = BrandedId<"GameSlotId">;
export type GameId = BrandedId<"GameId">;
export type CompetitionFactId = BrandedId<"CompetitionFactId">;
export type TournamentCodeId = BrandedId<"TournamentCodeId">;
export type TournamentCodeAssignmentId =
BrandedId<"TournamentCodeAssignmentId">;
export type RiotMatchId = BrandedId<"RiotMatchId">;
export type CommandId = BrandedId<"CommandId">;
export type UserPuuid = BrandedId<"UserPuuid">;