mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
Export interface HitsProvided
So that we have access to the accurate prop type of `<CustomerHit />` that passed to `<connectHits />`
This commit is contained in:
+1
-1
@@ -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>>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user