Skip to content

Commit f4375e6

Browse files
committed
Make crypto.subtle.importKey return a js.Promise[CryptoKey]
1 parent 5a502ad commit f4375e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/org/scalajs/dom/crypto/Crypto.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ trait SubtleCrypto extends js.Object {
265265
*/
266266
def importKey(format: KeyFormat, keyData: BufferSource,
267267
algorithm: KeyAlgorithmIdentifier, extractable: Boolean,
268-
keyUsages: js.Array[KeyUsage]): js.Promise[js.Any] = js.native
268+
keyUsages: js.Array[KeyUsage]): js.Promise[CryptoKey] = js.native
269269

270270
/**
271271
* Returns a Promise of a CryptoKey corresponding to the format, the
@@ -280,7 +280,7 @@ trait SubtleCrypto extends js.Object {
280280
*/
281281
def importKey(format: KeyFormat, keyData: JsonWebKey,
282282
algorithm: KeyAlgorithmIdentifier, extractable: Boolean,
283-
keyUsages: js.Array[KeyUsage]): js.Promise[js.Any] = js.native
283+
keyUsages: js.Array[KeyUsage]): js.Promise[CryptoKey] = js.native
284284

285285
/**
286286
* Returns a Promise of a buffer containing the key in the format requested.

0 commit comments

Comments
 (0)