[node] Fix typo in BasePrivateKeyEncodingOptions interface used in generateKeyPairSync function (#30066)

This commit is contained in:
Jeremie Rodriguez
2018-10-29 10:40:36 -07:00
committed by Andy
parent 3d82362c03
commit 3b647f0a80
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -30,6 +30,7 @@
// Wilco Bakker <https://github.com/WilcoBakker>
// wwwy3y3 <https://github.com/wwwy3y3>
// Zane Hannan AU <https://github.com/ZaneHannanAU>
// Jeremie Rodriguez <https://github.com/jeremiergz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/** inspector module types */
@@ -6394,7 +6395,7 @@ declare module "crypto" {
interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
format: T;
ciper: string;
cipher: string;
passphrase: string;
}
+3 -3
View File
@@ -1513,7 +1513,7 @@ async function asyncStreamPipelineFinished() {
type: 'pkcs1',
},
privateKeyEncoding: {
ciper: 'some-cipher',
cipher: 'some-cipher',
format: 'pem',
passphrase: 'secret',
type: 'pkcs8',
@@ -1531,7 +1531,7 @@ async function asyncStreamPipelineFinished() {
type: 'spki',
},
privateKeyEncoding: {
ciper: 'some-cipher',
cipher: 'some-cipher',
format: 'der',
passphrase: 'secret',
type: 'pkcs8',
@@ -1548,7 +1548,7 @@ async function asyncStreamPipelineFinished() {
type: 'pkcs1',
},
privateKeyEncoding: {
ciper: 'some-cipher',
cipher: 'some-cipher',
format: 'pem',
passphrase: 'secret',
type: 'pkcs8',