Skip to content

Commit

Permalink
regenerate lock, cast type issue
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Beemer <[email protected]>
  • Loading branch information
beeme1mr committed Feb 19, 2025
1 parent 1f6e1e8 commit 755f35e
Show file tree
Hide file tree
Showing 3 changed files with 1,460 additions and 1,634 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"@types/fs-extra": "11.0.4",
"@types/react": "^19.0.8",
"@typescript-eslint/parser": "8.24.1",
"@types/react": "^19.0.8",
"@typescript-eslint/eslint-plugin": "8.24.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "10.0.1",
Expand Down
8 changes: 6 additions & 2 deletions src/pages/ecosystem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import NoResultsBoundary from '../partials/ecosystem/no-results-boundary';
import PageIllustration from '../partials/page-illustration';
import Hit from '../partials/ecosystem/hit';
import ScrollTo from '../partials/ecosystem/scroll-to';
import { ItemsJsOptions } from 'instantsearch-itemsjs-adapter/lib/itemsjsInterface';

import type { ItemsJsOptions } from 'instantsearch-itemsjs-adapter/lib/itemsjsInterface';
import type { InstantSearchOptions } from 'instantsearch.js';

const VENDORS_SHOWN_AS_FACET = 20;
const TECHNOLOGIES_SHOWN_AS_FACET = 15;
Expand Down Expand Up @@ -46,7 +48,9 @@ const options: ItemsJsOptions = {
};

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

export default function Ecosystem() {
return (
Expand Down
Loading

0 comments on commit 755f35e

Please sign in to comment.