From 3b647f0a800794b2c310b150bdf40134e8f060d0 Mon Sep 17 00:00:00 2001 From: Jeremie Rodriguez Date: Mon, 29 Oct 2018 18:40:36 +0100 Subject: [PATCH] [node] Fix typo in BasePrivateKeyEncodingOptions interface used in generateKeyPairSync function (#30066) --- types/node/index.d.ts | 3 ++- types/node/node-tests.ts | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 48d8340522..e24fdb4438 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -30,6 +30,7 @@ // Wilco Bakker // wwwy3y3 // Zane Hannan AU +// Jeremie Rodriguez // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** inspector module types */ @@ -6394,7 +6395,7 @@ declare module "crypto" { interface BasePrivateKeyEncodingOptions { format: T; - ciper: string; + cipher: string; passphrase: string; } diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index f243aa649e..ae26f38a46 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -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',