Skip to content

Commit b002330

Browse files
panvaRafaelGSS
authored andcommitted
doc,crypto: fix WebCryptoAPI import keyData and export return
PR-URL: #46076 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 7718e82 commit b002330

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/webcrypto.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ changes:
710710

711711
* `format`: {string} Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
712712
* `key`: {CryptoKey}
713-
* Returns: {Promise} containing {ArrayBuffer}.
713+
* Returns: {Promise} containing {ArrayBuffer|Object}.
714714

715715
Exports the given key into the specified format, if supported.
716716

@@ -799,7 +799,7 @@ changes:
799799
-->
800800

801801
* `format`: {string} Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
802-
* `keyData`: {ArrayBuffer|TypedArray|DataView|Buffer|KeyObject}
802+
* `keyData`: {ArrayBuffer|TypedArray|DataView|Buffer|Object}
803803

804804
<!--lint disable maximum-line-length remark-lint-->
805805

0 commit comments

Comments
 (0)