type annotation
This commit is contained in:
parent
f40eb79090
commit
4aded2bfef
@ -36,8 +36,8 @@ function promiseFromRequest(request: BridgeIDBRequest): Promise<any> {
|
||||
|
||||
function promiseFromTransaction(
|
||||
transaction: BridgeIDBTransaction,
|
||||
): Promise<any> {
|
||||
return new Promise((resolve, reject) => {
|
||||
): Promise<void> {
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
transaction.oncomplete = () => {
|
||||
resolve();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user