brackt/app/lib/event-utils.ts
chrisp 1f41748261
All checks were successful
🚀 Deploy / 🧪 Test (push) Successful in 3m6s
🚀 Deploy / ʦ🔍 Typecheck & Lint (push) Successful in 1m20s
🚀 Deploy / 🐳 Build (push) Successful in 1m9s
🚀 Deploy / 🚀 Deploy (push) Successful in 11s
claude/funny-maxwell-vcyb19 (#91)
Co-authored-by: Claude <noreply@anthropic.com>
Reviewed-on: #91
2026-06-15 22:05:25 +00:00

12 lines
477 B
TypeScript

const BRACKET_MAJOR_SIMULATOR_TYPES = [
"cs2_major_qualifying_points",
"tennis_qualifying_points",
] as const;
/**
* Returns true for major_tournament events that use a bracket (CS2, Tennis).
* Golf (golf_qualifying_points) uses manual result entry and returns false.
*/
export function isBracketMajor(simulatorType: string | null | undefined): boolean {
return BRACKET_MAJOR_SIMULATOR_TYPES.includes(simulatorType as typeof BRACKET_MAJOR_SIMULATOR_TYPES[number]);
}