diff --git a/index.ts b/index.ts index 30a1427..b9b7f16 100644 --- a/index.ts +++ b/index.ts @@ -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"; @@ -60,4 +60,4 @@ export const usePersistentStorage = (storageDescriptor: StorageDescriptor) const removeValue = () => removeFromPersistentStorage(storageDescriptor.preferredStorage, storageDescriptor.key); return [value, setValue, removeValue]; } - export {StorageDescriptor, TStorageType} from "./index.types.ts"; + export {StorageDescriptor, TStorageType} from "./index.types"; diff --git a/package-lock.json b/package-lock.json index 40aa99e..bc01a41 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,11 +13,54 @@ "undici-types": "~5.26.4" } }, + "@types/prop-types": { + "version": "15.7.12", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.12.tgz", + "integrity": "sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==", + "dev": true + }, + "@types/react": { + "version": "18.2.74", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.74.tgz", + "integrity": "sha512-9AEqNZZyBx8OdZpxzQlaFEVCSFUM2YXJH46yPOiOpm078k6ZLOCcuAzGum/zK8YBwY+dbahVNbHrbgrAwIRlqw==", + "dev": true, + "requires": { + "@types/prop-types": "*", + "csstype": "^3.0.2" + } + }, + "csstype": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "dev": true + }, "jotai": { "version": "2.7.2", "resolved": "https://registry.npmjs.org/jotai/-/jotai-2.7.2.tgz", "integrity": "sha512-6Ft5kpNu8p93Ssf1Faoza3hYQZRIYp7rioK8MwTTFnbQKwUyZElwquPwl1h6U0uo9hC0jr+ghO3gcSjc6P35/Q==" }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "requires": { + "js-tokens": "^3.0.0 || ^4.0.0" + } + }, + "react": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", + "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "requires": { + "loose-envify": "^1.1.0" + } + }, "typescript": { "version": "5.4.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.3.tgz", diff --git a/package.json b/package.json index c52bbcc..28217bf 100644 --- a/package.json +++ b/package.json @@ -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" } }