File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ export function loadProjectData(
107107
108108 try {
109109 const endPoint = `${ config . apiUrl } /projects?page_size=500` ;
110+ // @ts -expect-error this was fine before, new TS seems to be more strict
110111 const { results } = await ky . get ( endPoint , { timeout : 200000 } ) . json ( ) ;
111112
112113 dispatch ( {
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ import {
1414export type Side = typeof LEFT_SIDE | typeof RIGHT_SIDE | typeof BOTH_SIDES ;
1515
1616export type HBISide = {
17- label : typeof HBI_STOPS [ number ] [ 'label' ] ;
18- color : typeof HBI_STOPS [ number ] [ 'color' ] ;
17+ label : ( typeof HBI_STOPS ) [ number ] [ 'label' ] ;
18+ color : ( typeof HBI_STOPS ) [ number ] [ 'color' ] ;
1919 level ?: HBILevel ;
2020} ;
2121
Original file line number Diff line number Diff line change 1+ /* eslint-disable jsx-a11y/control-has-associated-label */
12import React from 'react' ;
23import { useDispatch } from 'react-redux' ;
34import styled from 'styled-components' ;
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export const STATUS =
7777
7878// The type of any array item can be accessed using an array index, by
7979// generalizing over all possible array indices we get all possible item types
80- export type Status = typeof STATUS [ number ] ;
80+ export type Status = ( typeof STATUS ) [ number ] ;
8181
8282type SubmitReportResponse = any ;
8383
You can’t perform that action at this time.
0 commit comments