react-instantsearch-core
Version:
⚡ Lightning-fast search for React, by Algolia
9 lines (8 loc) • 354 B
TypeScript
import type { Widget } from 'instantsearch.js';
import type { IndexWidget } from 'instantsearch.js/es/widgets/index/index';
export declare function useWidget<TWidget extends Widget | IndexWidget, TProps>({ widget, parentIndex, props, shouldSsr, }: {
widget: TWidget;
parentIndex: IndexWidget;
props: TProps;
shouldSsr: boolean;
}): void;