From bfa81b186e6fa38ed8edb5d33db6fe85b911a9a0 Mon Sep 17 00:00:00 2001 From: Joe Anderson Date: Wed, 28 Feb 2024 11:10:40 +0000 Subject: [PATCH] Fix types --- packages/jotai-x/src/createAtomProvider.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/jotai-x/src/createAtomProvider.tsx b/packages/jotai-x/src/createAtomProvider.tsx index 357ecaa..70ae863 100644 --- a/packages/jotai-x/src/createAtomProvider.tsx +++ b/packages/jotai-x/src/createAtomProvider.tsx @@ -42,12 +42,13 @@ export const useAtomStore = ( return store; }; -export type ProviderProps = AtomProviderProps & - Partial & { - scope?: string; - initialValues?: Partial; - resetKey?: any; - }; +export type ProviderProps = Partial & { + store?: JotaiStore; + scope?: string; + initialValues?: Partial; + resetKey?: any; + children: React.ReactNode; +}; export const HydrateAtoms = ({ initialValues,