getElectionData
1 parent 0eba245 commit 9680460Copy full SHA for 9680460
1 file changed
dotcom-rendering/src/components/ElectionTrackers/ElectionTracker.tsx
@@ -24,7 +24,9 @@ type Props = {
24
electionDataUrl: URL;
25
/**
26
* A potentially side-effectful function used to retrieve election data from
27
- * the given URL. The result is a JS object of unknown shape.
+ * the given URL, allowing for different effects to be passed in different
28
+ * environments. The result is a JS object of unknown shape, which will be
29
+ * parsed here.
30
*/
31
getElectionData: (url: string) => Promise<unknown>;
32
0 commit comments