Skip to content

Commit

Permalink
Set type is pointless.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakearchibald committed Mar 26, 2018
1 parent e6e32e6 commit f8f7d75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/idb-keyval.d.ts
Expand Up @@ -5,7 +5,7 @@ export declare class Store {
_withIDBStore(type: IDBTransactionMode, callback: ((store: IDBObjectStore) => void)): Promise<void>;
}
export declare function get<Type>(key: IDBValidKey, store?: Store): Promise<Type>;
export declare function set<Type>(key: IDBValidKey, value: any, store?: Store): Promise<void>;
export declare function set(key: IDBValidKey, value: any, store?: Store): Promise<void>;
export declare function del(key: IDBValidKey, store?: Store): Promise<void>;
export declare function clear(store?: Store): Promise<void>;
export declare function keys(store?: Store): Promise<IDBValidKey[]>;
2 changes: 1 addition & 1 deletion idb-keyval.ts
Expand Up @@ -38,7 +38,7 @@ export function get<Type>(key: IDBValidKey, store = getDefaultStore()): Promise<
}).then(() => req.result);
}

export function set<Type>(key: IDBValidKey, value: any, store = getDefaultStore()): Promise<void> {
export function set(key: IDBValidKey, value: any, store = getDefaultStore()): Promise<void> {
return store._withIDBStore('readwrite', store => {
store.put(value, key);
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "idb-keyval",
"version": "3.0.1",
"version": "3.0.2",
"description": "A super-simple-small keyval store built on top of IndexedDB",
"main": "./dist/idb-keyval-cjs.js",
"module": "./dist/idb-keyval.mjs",
Expand Down

0 comments on commit f8f7d75

Please sign in to comment.