diff options
Diffstat (limited to 'src/crypto')
-rw-r--r-- | src/crypto/cryptoApi.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/cryptoApi.ts b/src/crypto/cryptoApi.ts index 5300c1370..94083d622 100644 --- a/src/crypto/cryptoApi.ts +++ b/src/crypto/cryptoApi.ts @@ -218,7 +218,7 @@ export class CryptoApi { ...args: any[]): Promise<T> { const start = timer.performanceNow(); - const p = new Promise((resolve, reject) => { + const p: Promise<T> = new Promise<T>((resolve, reject) => { const rpcId = this.nextRpcId++; const workItem: WorkItem = {operation, args, resolve, reject, rpcId}; |