Export interface HitsProvided

So that we have access to the accurate prop type of `<CustomerHit />` that passed to `<connectHits />`
This commit is contained in:
Ivan Wang
2019-03-30 13:00:45 +11:00
committed by GitHub
parent 0617f9dd7d
commit 3f52c0e412
+1 -1
View File
@@ -320,7 +320,7 @@ export type HighlightProps<TDoc = any> = HighlightProvided<TDoc> & HighlightPass
export function connectHighlight<TDoc = any>(stateless: React.StatelessComponent<HighlightProps<TDoc>>): React.ComponentClass<HighlightPassedThru<TDoc>>;
export function connectHighlight<TProps extends Partial<HighlightProps<TDoc>>, TDoc>(ctor: React.ComponentType<TProps>): ConnectedComponentClass<TProps, HighlightProvided<TDoc>>;
interface HitsProvided<THit> {
export interface HitsProvided<THit> {
/** the records that matched the search state */
hits: Array<Hit<THit>>;
}