From 12f14cbac34207cc13cf6ec8369ec36a1ef9ea91 Mon Sep 17 00:00:00 2001 From: Tiger Oakes Date: Wed, 9 Oct 2019 01:17:20 -0700 Subject: [PATCH] Return void instead of undefined (#128) --- build/esm/entry.d.ts | 12 ++++++------ lib/entry.ts | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/build/esm/entry.d.ts b/build/esm/entry.d.ts index fce9913..fc50c87 100644 --- a/build/esm/entry.d.ts +++ b/build/esm/entry.d.ts @@ -151,7 +151,7 @@ export interface IDBPDatabase exte * * @param storeName Name of the store. */ - clear(name: StoreNames): Promise; + clear(name: StoreNames): Promise; /** * Retrieves the number of records matching the given query in a store. * @@ -182,7 +182,7 @@ export interface IDBPDatabase exte * @param storeName Name of the store. * @param key */ - delete>(storeName: Name, key: StoreKey | IDBKeyRange): Promise; + delete>(storeName: Name, key: StoreKey | IDBKeyRange): Promise; /** * Retrieves the value of the first record in a store matching the query. * @@ -306,7 +306,7 @@ export interface IDBPTransaction; + readonly done: Promise; /** * The associated object store, if the transaction covers a single store, otherwise undefined. */ @@ -339,7 +339,7 @@ export interface IDBPObjectStore; + clear(): Promise; /** * Retrieves the number of records matching the given query. */ @@ -353,7 +353,7 @@ export interface IDBPObjectStore | IDBKeyRange): Promise; + delete(key: StoreKey | IDBKeyRange): Promise; /** * Retrieves the value of the first record matching the query. * @@ -530,7 +530,7 @@ export interface IDBPCursor; + delete(): Promise; /** * Updated the current record. */ diff --git a/lib/entry.ts b/lib/entry.ts index ec0d7f2..18c5260 100644 --- a/lib/entry.ts +++ b/lib/entry.ts @@ -262,7 +262,7 @@ export interface IDBPDatabase * * @param storeName Name of the store. */ - clear(name: StoreNames): Promise; + clear(name: StoreNames): Promise; /** * Retrieves the number of records matching the given query in a store. * @@ -306,7 +306,7 @@ export interface IDBPDatabase delete>( storeName: Name, key: StoreKey | IDBKeyRange, - ): Promise; + ): Promise; /** * Retrieves the value of the first record in a store matching the query. * @@ -486,7 +486,7 @@ export interface IDBPTransaction< /** * Promise for the completion of this transaction. */ - readonly done: Promise; + readonly done: Promise; /** * The associated object store, if the transaction covers a single store, otherwise undefined. */ @@ -550,7 +550,7 @@ export interface IDBPObjectStore< /** * Deletes all records in store. */ - clear(): Promise; + clear(): Promise; /** * Retrieves the number of records matching the given query. */ @@ -568,7 +568,7 @@ export interface IDBPObjectStore< /** * Deletes records in store matching the given query. */ - delete(key: StoreKey | IDBKeyRange): Promise; + delete(key: StoreKey | IDBKeyRange): Promise; /** * Retrieves the value of the first record matching the query. * @@ -848,7 +848,7 @@ export interface IDBPCursor< /** * Delete the current record. */ - delete(): Promise; + delete(): Promise; /** * Updated the current record. */