Files
codex-bot 9615add720
Verify mini program and deploy preview / verify-deploy (push) Successful in 3m57s
feat: redesign typed rice poster editor
2026-09-20 16:37:35 +08:00

2 lines
785 B
TypeScript

export interface Candidate{id:string;name:string}export interface Decision{round:number;left_id:string;right_id:string;winner_id:string}export interface TestDetail{slug:string;title:string;subtitle:string;description:string;candidate_count:number;run_count:number;candidates:Candidate[]}export interface TestResult{id:string;test_slug:string;test_title:string;champion_id:string;champion_name:string;runner_up_name?:string|null;completed_at:string;ranking_names?:string[];decisions:Decision[];candidate_names:Record<string,string>}export interface Match{left:Candidate;right:Candidate|null;winner:Candidate|null}export interface BracketState{round:number;pool:Candidate[];matches:Match[];eliminated:Candidate[];decisions:Decision[];offset:number}export type ChoiceSide='left'|'right';