From b87251eefd2e593d2c5eddf18a48dbb75a3387fc Mon Sep 17 00:00:00 2001 From: Andros Rosa Llop Date: Fri, 3 Jan 2020 19:25:13 -0400 Subject: [PATCH] react-table: Fix type of useGetLatest (#41369) * make it a generic function, with return type `() => T` --- types/react-table/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-table/index.d.ts b/types/react-table/index.d.ts index cc9ab77ebf..0ebc03a760 100644 --- a/types/react-table/index.d.ts +++ b/types/react-table/index.d.ts @@ -791,7 +791,7 @@ export function functionalUpdate( old: Partial>, ): Partial>; -export function useGetLatest(obj: any): any; +export function useGetLatest(obj: T): () => T; export function safeUseLayoutEffect(effect: EffectCallback, deps?: DependencyList): void;