Skip to content

Commit 1c0e99e

Browse files
committed
refactor: improve type safety by replacing any with specific types and perform minor formatting cleanup.
1 parent 65010be commit 1c0e99e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/2025/Speakers/SpeakersWrapper2025.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe("SpeakersWrapper2025", () => {
5454
isLoading: false,
5555
error: null,
5656
isSuccess: true,
57-
} as any);
57+
} as ReturnType<typeof useFetchSpeakers>);
5858

5959
renderWithRouterAndQueryClient(<SpeakersWrapper2025 />);
6060

@@ -68,7 +68,7 @@ describe("SpeakersWrapper2025", () => {
6868
isLoading: false,
6969
error: null,
7070
isSuccess: true,
71-
} as any);
71+
} as ReturnType<typeof useFetchSpeakers>);
7272

7373
renderWithRouterAndQueryClient(<SpeakersWrapper2025 />);
7474

@@ -82,7 +82,7 @@ describe("SpeakersWrapper2025", () => {
8282
isLoading: false,
8383
error: null,
8484
isSuccess: true,
85-
} as any);
85+
} as ReturnType<typeof useFetchSpeakers>);
8686

8787
renderWithRouterAndQueryClient(<SpeakersWrapper2025 />);
8888

src/reportWebVitals.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { onCLS, onFCP, onLCP, onTTFB } from "web-vitals";
2+
23
import type { Metric } from "web-vitals";
34

45
const reportWebVitals = (onPerfEntry?: (metric: Metric) => void) => {

src/services/urlBuilder.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
```typescript
21
import { useUrlBuilder } from "./urlBuilder";
32

43
// Mock window.location for the test

src/types/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export interface Edition {
2-
hideSpeakers: any;
2+
hideSpeakers: boolean;
33
actionButtons: boolean;
44
carrousel: Carrousel;
55
cfp: Cfp;

0 commit comments

Comments
 (0)