From 257edf394cd1d70b2e760eb002627083679d86a1 Mon Sep 17 00:00:00 2001 From: Dmytro Stanchiev Date: Wed, 17 Sep 2025 19:00:13 -0400 Subject: [PATCH] style: specify source of apollo state interface Signed-off-by: Dmytro Stanchiev --- src/kijiji.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/kijiji.ts b/src/kijiji.ts index fe10c95..508b267 100644 --- a/src/kijiji.ts +++ b/src/kijiji.ts @@ -5,7 +5,7 @@ type SearchListing = { listingLink: string; }; -interface ApolloState { +interface ApolloSearchState { [key: string]: { [key: string]: unknown; url: string; @@ -33,7 +33,8 @@ function extractSearchListingsFromNextData(htmlString: string) { return []; } const jsonData = JSON.parse(nextData.textContent); - const apolloState: ApolloState = jsonData.props.pageProps.__APOLLO_STATE__; + const apolloState: ApolloSearchState = + jsonData.props.pageProps.__APOLLO_STATE__; const listingsKeys: string[] = [];