Skip to content

Commit

Permalink
Added missing deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav Nyaupane committed Apr 4, 2024
1 parent a397360 commit f3e2b3c
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {StorageDescriptor, TStorageType} from "./index.types.ts";
import {StorageDescriptor, TStorageType} from "./index.types";
import React, {useEffect} from "react";
import { useAtom } from "jotai";

Expand Down Expand Up @@ -60,4 +60,4 @@ export const usePersistentStorage = <T>(storageDescriptor: StorageDescriptor<T>)
const removeValue = () => removeFromPersistentStorage(storageDescriptor.preferredStorage, storageDescriptor.key);
return [value, setValue, removeValue];
}
export {StorageDescriptor, TStorageType} from "./index.types.ts";
export {StorageDescriptor, TStorageType} from "./index.types";
43 changes: 43 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
"homepage": "https://github.com/nightmaregaurav/persistent-storage#readme",
"devDependencies": {
"@types/node": "^20.11.17",
"@types/react": "^18.2.74",
"typescript": "^5.3.3"
},
"dependencies": {
"jotai": "^2.7.2"
"jotai": "^2.7.2",
"react": "^18.2.0"
}
}

0 comments on commit f3e2b3c

Please sign in to comment.