mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
[node] Fix typo in BasePrivateKeyEncodingOptions interface used in generateKeyPairSync function (#30066)
This commit is contained in:
Vendored
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user