From 124b937927943c51d46029cb6a1329e25504205d Mon Sep 17 00:00:00 2001 From: Brian Skinn Date: Fri, 29 Mar 2024 10:56:59 -0400 Subject: [PATCH 1/3] Another trivial, still-type-broken change --- src/helpers/state.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/state.ts b/src/helpers/state.ts index 3423fd9..f427bce 100644 --- a/src/helpers/state.ts +++ b/src/helpers/state.ts @@ -3,7 +3,7 @@ import type { TRoundTurnInfo } from '@/types/types-score-scrape' import { BONUS_TURN_ID } from '@/consts' -export const calcRoundTurn = (raw_turn: TRawTurnIdxx): TRoundTurnInfo => { +export const calcRoundTurn = (raw_turn: TRawTurnIdxxr): TRoundTurnInfo => { // raw_turn is zero-indexed // The output round and in-round turn are one-indexed if (raw_turn <= 7) { From f17576fe82ddbf147c71a021233cfe298c9692b6 Mon Sep 17 00:00:00 2001 From: Brian Skinn Date: Fri, 29 Mar 2024 10:58:42 -0400 Subject: [PATCH 2/3] Move workflow to the correct place --- .github/{ => workflows}/check_types.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{ => workflows}/check_types.yml (100%) diff --git a/.github/check_types.yml b/.github/workflows/check_types.yml similarity index 100% rename from .github/check_types.yml rename to .github/workflows/check_types.yml From 3b0d1b58117bf04e61a2c45e1064dcf41edab04d Mon Sep 17 00:00:00 2001 From: Brian Skinn Date: Fri, 29 Mar 2024 11:00:36 -0400 Subject: [PATCH 3/3] Fix type error --- src/helpers/state.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/state.ts b/src/helpers/state.ts index f427bce..b4709c7 100644 --- a/src/helpers/state.ts +++ b/src/helpers/state.ts @@ -3,7 +3,7 @@ import type { TRoundTurnInfo } from '@/types/types-score-scrape' import { BONUS_TURN_ID } from '@/consts' -export const calcRoundTurn = (raw_turn: TRawTurnIdxxr): TRoundTurnInfo => { +export const calcRoundTurn = (raw_turn: TRawTurnId): TRoundTurnInfo => { // raw_turn is zero-indexed // The output round and in-round turn are one-indexed if (raw_turn <= 7) {