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