getTrainTypeの仕様変更に追従

This commit is contained in:
harukin-expo-dev-env
2025-09-11 16:08:03 +00:00
parent 9ab4c0a205
commit ad2d18e263
13 changed files with 251 additions and 129 deletions

View File

@@ -1,20 +1,6 @@
export type typeID =
| "Normal"
| "OneMan"
| "Rapid"
| "OneManRapid"
| "LTDEXP"
| "NightLTDEXP"
| "SPCL"
| "SPCL_Normal"
| "SPCL_Rapid"
| "SPCL_EXP"
| "Party"
| "Freight"
| "Forwarding"
| "FreightForwarding"
| "Other";
type types = (types: typeID, id: string) => [string, boolean, boolean];
import { trainTypeID } from "@/lib/CommonTypes";
type types = (types: trainTypeID, id: string) => [string, boolean, boolean];
export const getStringConfig: types = (type, id) => {
switch (type) {
case "Normal":