diff --git a/package.json b/package.json index 0cc4083..30178d3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chrome-extension-toolkit", - "version": "0.0.69", + "version": "0.0.70", "description": "A template for creating npm packages using TypeScript and VSCode", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/storage/createStore.ts b/src/storage/createStore.ts index 2c0195f..29d0076 100644 --- a/src/storage/createStore.ts +++ b/src/storage/createStore.ts @@ -89,7 +89,7 @@ export type Store = { use( key: K ): [ - K extends keyof T ? Serializable : T, + K extends keyof T ? Serializable : Serializable, (value: K extends keyof T ? Serializable : Partial>) => Promise ]; @@ -100,9 +100,9 @@ export type Store = { */ use( key: K, - defaultValue: K extends keyof T ? Serializable : T + defaultValue: K extends keyof T ? Serializable : Serializable ): [ - K extends keyof T ? Serializable : T, + K extends keyof T ? Serializable : Serializable, (value: K extends keyof T ? Serializable : Partial>) => Promise ];