File tree Expand file tree Collapse file tree 3 files changed +1457
-1631
lines changed
Expand file tree Collapse file tree 3 files changed +1457
-1631
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ import NoResultsBoundary from '../partials/ecosystem/no-results-boundary';
1313import PageIllustration from '../partials/page-illustration' ;
1414import Hit from '../partials/ecosystem/hit' ;
1515import 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
1820const VENDORS_SHOWN_AS_FACET = 20 ;
1921const TECHNOLOGIES_SHOWN_AS_FACET = 15 ;
@@ -46,7 +48,9 @@ const options: ItemsJsOptions = {
4648} ;
4749
4850const 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
5155export default function Ecosystem ( ) {
5256 return (
You can’t perform that action at this time.
0 commit comments