From c863484a52369b85ce0f00cd7497af831367f008 Mon Sep 17 00:00:00 2001 From: Philipp Fritsche Date: Fri, 3 Sep 2021 10:35:06 +0000 Subject: [PATCH] refactor: fix false-positive react/prop-types --- src/context.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/context.tsx b/src/context.tsx index 6418882..4a4a43c 100644 --- a/src/context.tsx +++ b/src/context.tsx @@ -42,9 +42,10 @@ export function CacheProvider( { dbDriverFactory = lazyIndexedDB, children, - }: React.PropsWithChildren<{ + }: { + children: React.ReactNode dbDriverFactory?: DBDriverFactory - }>, + }, ): React.ReactElement { const cache = useRef({}).current const context: CacheContext = useMemo(() => ({cache, dbDriverFactory}), [cache, dbDriverFactory])