Skip to content

Commit ff92e0b

Browse files
authored
regenerate lock, cast type issue (#997)
## This PR - regenerates lock file to remove duplicate React types - cast the instance search client type Signed-off-by: Michael Beemer <[email protected]>
1 parent beda165 commit ff92e0b

File tree

3 files changed

+1457
-1631
lines changed

3 files changed

+1457
-1631
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
"@types/fs-extra": "11.0.4",
7474
"@types/react": "^19.0.8",
7575
"@typescript-eslint/parser": "8.24.1",
76-
"@types/react": "^19.0.8",
7776
"@typescript-eslint/eslint-plugin": "8.24.1",
7877
"eslint": "^8.57.0",
7978
"eslint-config-prettier": "10.0.1",

src/pages/ecosystem.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ import NoResultsBoundary from '../partials/ecosystem/no-results-boundary';
1313
import PageIllustration from '../partials/page-illustration';
1414
import Hit from '../partials/ecosystem/hit';
1515
import ScrollTo from '../partials/ecosystem/scroll-to';
16-
import { ItemsJsOptions } from 'instantsearch-itemsjs-adapter/lib/itemsjsInterface';
16+
17+
import type { ItemsJsOptions } from 'instantsearch-itemsjs-adapter/lib/itemsjsInterface';
18+
import type { InstantSearchOptions } from 'instantsearch.js';
1719

1820
const VENDORS_SHOWN_AS_FACET = 20;
1921
const TECHNOLOGIES_SHOWN_AS_FACET = 15;
@@ -46,7 +48,9 @@ const options: ItemsJsOptions = {
4648
};
4749

4850
const index = createIndex(ECOSYSTEM, options);
49-
const searchClient = getSearchClient(index);
51+
// Casting as the items.js implementation has slightly different facet types.
52+
// This doesn't appear to have any negative effects.
53+
const searchClient = getSearchClient(index) as InstantSearchOptions['searchClient'];
5054

5155
export default function Ecosystem() {
5256
return (

0 commit comments

Comments
 (0)