From dc6c44e3443ac21a6cb2a58ec7048c55af6ebe8a Mon Sep 17 00:00:00 2001 From: Yoan VALLET <ext.sopra.yvallet@grandlyon.com> Date: Thu, 2 Jul 2020 14:29:52 +0200 Subject: [PATCH] feat: add declaration to withClient to avoid error --- src/cozy-client.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cozy-client.d.ts b/src/cozy-client.d.ts index c3be97b9c..54180b6a5 100644 --- a/src/cozy-client.d.ts +++ b/src/cozy-client.d.ts @@ -62,7 +62,7 @@ export function queryConnect<C extends React.ElementType>( ): (wrappedElement: C) => void export function withClient<C extends React.ElementType>( - component: React.ComponentPropsWithoutRef<C> + component: React.ComponentPropsWithoutRef<C> | React.FC<> ): (wrappedElement: C) => void export type QueryState<D> = { -- GitLab