type annotation

This commit is contained in:
Florian Dold 2021-01-29 11:36:44 +01:00
parent f40eb79090
commit 4aded2bfef
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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();
};