Fix TypeScript errors: cast response.json() to EspnStandingsResponse
Some checks failed
🚀 Deploy / 🧪 Test (pull_request) Failing after 2m39s
🚀 Deploy / ʦ TypeScript (pull_request) Successful in 1m19s
🚀 Deploy / 🔍 Lint (pull_request) Successful in 51s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
Some checks failed
🚀 Deploy / 🧪 Test (pull_request) Failing after 2m39s
🚀 Deploy / ʦ TypeScript (pull_request) Successful in 1m19s
🚀 Deploy / 🔍 Lint (pull_request) Successful in 51s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e353c17a0b
commit
880b7faa6b
3 changed files with 6 additions and 3 deletions
|
|
@ -4,6 +4,7 @@ import {
|
|||
parseConferenceRank,
|
||||
sortByWinLoss,
|
||||
statsMap,
|
||||
type EspnStandingsResponse,
|
||||
} from "./espn";
|
||||
|
||||
const MLB_STANDINGS_URL =
|
||||
|
|
@ -30,7 +31,7 @@ export class MlbStandingsAdapter implements StandingsSyncAdapter {
|
|||
throw new Error(`MLB standings API returned ${response.status}: ${response.statusText}`);
|
||||
}
|
||||
|
||||
const json = await response.json();
|
||||
const json = (await response.json()) as EspnStandingsResponse;
|
||||
const flattened = flattenEspnStandings(json);
|
||||
|
||||
if (flattened.length === 0) {
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import {
|
|||
flattenEspnStandings,
|
||||
parseConferenceRank,
|
||||
statsMap,
|
||||
type EspnStandingsResponse,
|
||||
} from "./espn";
|
||||
|
||||
const MLS_STANDINGS_URL =
|
||||
|
|
@ -28,7 +29,7 @@ export class MlsStandingsAdapter implements StandingsSyncAdapter {
|
|||
);
|
||||
}
|
||||
|
||||
const json = await response.json();
|
||||
const json = (await response.json()) as EspnStandingsResponse;
|
||||
const flattened = flattenEspnStandings(json);
|
||||
|
||||
if (flattened.length === 0) {
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import {
|
|||
parseConferenceRank,
|
||||
sortByWinLoss,
|
||||
statsMap,
|
||||
type EspnStandingsResponse,
|
||||
} from "./espn";
|
||||
|
||||
const NBA_STANDINGS_URL =
|
||||
|
|
@ -16,7 +17,7 @@ export class NbaStandingsAdapter implements StandingsSyncAdapter {
|
|||
throw new Error(`NBA standings API returned ${response.status}: ${response.statusText}`);
|
||||
}
|
||||
|
||||
const json = await response.json();
|
||||
const json = (await response.json()) as EspnStandingsResponse;
|
||||
const flattened = flattenEspnStandings(json);
|
||||
|
||||
if (flattened.length === 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue