diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-12-10 23:02:00 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-12-10 23:02:00 +0100 |
commit | 3c882c44b5aba1ae397a2b89f99f4cdb82fbbbfa (patch) | |
tree | 842d51eb84dcc48ed4240c27551c973bd369ef6d /src/crypto | |
parent | 0469abd4a9c9270a1fdc962969e36e63699af8b4 (diff) |
fix problems found by newer TypeScript compiler
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}; |