Skip to content

Commit

Permalink
fix(types): correct type for queryHook return (#4602)
Browse files Browse the repository at this point in the history
this used to be an implicit any
  • Loading branch information
Haroenv authored Dec 9, 2020
1 parent 539df82 commit acff8db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export type IndexRenderState = Partial<{
isSearchStalled: boolean;
},
{
queryHook?(query: string, refine: (query: string) => void);
queryHook?(query: string, refine: (query: string) => void): void;
}
>;
autocomplete: WidgetRenderState<
Expand Down

0 comments on commit acff8db

Please sign in to comment.