Skip to content

Commit

Permalink
Change type annotations to use Record
Browse files Browse the repository at this point in the history
  • Loading branch information
yifanmai committed Aug 29, 2024
1 parent f6b2fbe commit b846d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helm-frontend/src/routes/Run.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ export default function Run() {
const [instances, setInstances] = useState<Instance[]>([]);
const [stats, setStats] = useState<Stat[]>([]);
const [displayPredictionsMap, setDisplayPredictionsMap] = useState<
undefined | { [key: string]: { [key: string]: DisplayPrediction[] } }
undefined | Record<string, Record<string, DisplayPrediction[]>>
>();
const [displayRequestsMap, setDisplayRequestsMap] = useState<
undefined | { [key: string]: { [key: string]: DisplayRequest[] } }
undefined | Record<string, Record<string, DisplayRequest[]>>
>();
const [currentInstancesPage, setCurrentInstancesPage] = useState<number>(1);
const [totalInstancesPages, setTotalInstancesPages] = useState<number>(1);
Expand Down

0 comments on commit b846d36

Please sign in to comment.