Skip to main content

Interface: CricketState

Defined in: src/models/cricket_wp.ts:74

One over-level match state row: the input schema of cricket_win_probability and the output of cricket_match_state.

Extended by​

Properties​

balls_bowled​

balls_bowled: number

Defined in: src/models/cricket_wp.ts:86

Legal deliveries bowled so far (overs * 6 + balls).


balls_total​

balls_total: number

Defined in: src/models/cricket_wp.ts:88

Deliveries in a full innings for the format (FormatConstants.balls_total).


batting_team_id​

batting_team_id: string | null

Defined in: src/models/cricket_wp.ts:80

Batting team id as a string (competitor.team.id, else competitor.id), or null.


event_id​

event_id: string | null

Defined in: src/models/cricket_wp.ts:76

ESPN event id as a string, or null when the payload carries none.


fmt​

fmt: string

Defined in: src/models/cricket_wp.ts:92

Format slug; resolved through get_format per row.


innings_number​

innings_number: number

Defined in: src/models/cricket_wp.ts:78

1 when setting a total, 2 when a target is present (chasing).


runs​

runs: number

Defined in: src/models/cricket_wp.ts:82

Runs scored so far in the innings.


target​

target: number | null

Defined in: src/models/cricket_wp.ts:90

Runs needed to win when chasing; null in the first innings.


wickets​

wickets: number

Defined in: src/models/cricket_wp.ts:84

Wickets lost so far (0 when the score string has no /w part).