Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
12joan committed Feb 28, 2024
1 parent 96c08e9 commit bfa81b1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/jotai-x/src/createAtomProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@ export const useAtomStore = (
return store;
};

export type ProviderProps<T extends object> = AtomProviderProps &
Partial<T> & {
scope?: string;
initialValues?: Partial<T>;
resetKey?: any;
};
export type ProviderProps<T extends object> = Partial<T> & {
store?: JotaiStore;
scope?: string;
initialValues?: Partial<T>;
resetKey?: any;
children: React.ReactNode;
};

export const HydrateAtoms = <T extends object>({
initialValues,
Expand Down

0 comments on commit bfa81b1

Please sign in to comment.