From acff8db3a2238edf40da1ee6b44e93a94e090698 Mon Sep 17 00:00:00 2001 From: Haroen Viaene Date: Wed, 9 Dec 2020 10:31:53 +0100 Subject: [PATCH] fix(types): correct type for queryHook return (#4602) this used to be an implicit any --- src/types/widget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/widget.ts b/src/types/widget.ts index 90fbc5bfab..77e206a9ce 100644 --- a/src/types/widget.ts +++ b/src/types/widget.ts @@ -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<