Skip to content

Commit c863484

Browse files
committed
refactor: fix false-positive react/prop-types
1 parent cb96733 commit c863484

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/context.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ export function CacheProvider(
4242
{
4343
dbDriverFactory = lazyIndexedDB,
4444
children,
45-
}: React.PropsWithChildren<{
45+
}: {
46+
children: React.ReactNode
4647
dbDriverFactory?: DBDriverFactory
47-
}>,
48+
},
4849
): React.ReactElement {
4950
const cache = useRef<CacheContext['cache']>({}).current
5051
const context: CacheContext = useMemo(() => ({cache, dbDriverFactory}), [cache, dbDriverFactory])

0 commit comments

Comments
 (0)