Skip to content

Commit ebe2921

Browse files
panvajuanarbol
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 3968698 commit ebe2921

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
@@ -689,7 +689,7 @@ changes:
689689

690690
* `format`: {string} Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
691691
* `key`: {CryptoKey}
692-
* Returns: {Promise} containing {ArrayBuffer}.
692+
* Returns: {Promise} containing {ArrayBuffer|Object}.
693693

694694
Exports the given key into the specified format, if supported.
695695

@@ -776,7 +776,7 @@ changes:
776776
-->
777777

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

781781
<!--lint disable maximum-line-length remark-lint-->
782782

0 commit comments

Comments
 (0)