Uh oh!
There was an error while loading. Please reload this page.
doc/crypto: include options and correct return type for setAAD() - #21420
doc/crypto: include options and correct return type for setAAD()#21420ZaneHannanAU wants to merge 4 commits into
Conversation
| --> | ||
| - `buffer` {Buffer | TypedArray | DataView} | ||
| - Returns: {Cipher} for method chaining. | ||
| - `options` {Object} |
There was a problem hiding this comment.
It seems plaintextLength should be documented here as well, as a property of options, in a nested level.
There was a problem hiding this comment.
Yeah; I had originally planned on writing an AADOptions block but it was so short I didn't feel the need to.
Also I added CipherGCMOptions and CipherCCMOptions in @types/node; though not sure how I should go about that in @nodejs/node.
There was a problem hiding this comment.
If you check other documentations, you'll see how options are handled there. Normally it just get's a short description what it stands for right after the type.
vsemozhetbyt
commented
Jun 20, 2018
cc @nodejs/crypto |
Trott
commented
Jun 20, 2018
Hi @ZaneHannanAU! Welcome and thanks for the pull request! Note for whoever lands this change: The commit message should probably not use Something like that. |
vsemozhetbyt
commented
Jun 24, 2018
So should we land or should we wait for |
ZaneHannanAU
commented
Jun 24, 2018
@vsemozhetbyt added for now sorry |
| - `buffer` {Buffer} | ||
| - `options` {Object} | ||
| - `options` {Object} [`stream.transform` options][] | ||
| - `plaintextLength`: {nunmber} |
There was a problem hiding this comment.
Nit: delete colon and {nunmber} -> {number} so we can run the last CI)
| - `buffer` {Buffer | TypedArray | DataView} | ||
| - `options` {Object} | ||
| - `options` {Object} [`stream.transform` options][] | ||
| - `plaintextLength`: {nunmber} |
PR-URL: #21420 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
vsemozhetbyt
commented
Jun 24, 2018
Landed in c041fd2 |
PR-URL: #21420 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
Checklist
Ensure consistency within documentation.