From 3c882c44b5aba1ae397a2b89f99f4cdb82fbbbfa Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 10 Dec 2017 23:02:00 +0100 Subject: fix problems found by newer TypeScript compiler --- src/crypto/cryptoApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/crypto/cryptoApi.ts') 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 { const start = timer.performanceNow(); - const p = new Promise((resolve, reject) => { + const p: Promise = new Promise((resolve, reject) => { const rpcId = this.nextRpcId++; const workItem: WorkItem = {operation, args, resolve, reject, rpcId}; -- cgit v1.2.3