From d6204d55a4c807739ca9a34826213530c4cee783 Mon Sep 17 00:00:00 2001 From: dsueltenfuss Date: Mon, 25 Nov 2019 16:45:49 -0500 Subject: [PATCH] Correct comment in node/crypto definition (#40587) * Added missing type * Updated package header * Replaced tabs with spaces * Correcting a comment Correcting a comment to refer to the correct function --- types/node/crypto.d.ts | 6 +++--- types/node/v10/crypto.d.ts | 6 +++--- types/node/v11/crypto.d.ts | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/types/node/crypto.d.ts b/types/node/crypto.d.ts index ee0dd7f8ba..b7ecb7fffa 100644 --- a/types/node/crypto.d.ts +++ b/types/node/crypto.d.ts @@ -220,11 +220,11 @@ declare module "crypto" { setAAD(buffer: Buffer, options?: { plaintextLength: number }): this; getAuthTag(): Buffer; } - /** @deprecated since v10.0.0 use createCipheriv() */ + /** @deprecated since v10.0.0 use createDecipheriv() */ function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM; - /** @deprecated since v10.0.0 use createCipheriv() */ + /** @deprecated since v10.0.0 use createDecipheriv() */ function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM; - /** @deprecated since v10.0.0 use createCipheriv() */ + /** @deprecated since v10.0.0 use createDecipheriv() */ function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher; function createDecipheriv( diff --git a/types/node/v10/crypto.d.ts b/types/node/v10/crypto.d.ts index a083b14ef4..0710032678 100644 --- a/types/node/v10/crypto.d.ts +++ b/types/node/v10/crypto.d.ts @@ -88,11 +88,11 @@ declare module "crypto" { setAAD(buffer: Buffer, options?: { plaintextLength: number }): this; getAuthTag(): Buffer; } - /** @deprecated since v10.0.0 use createCipheriv() */ + /** @deprecated since v10.0.0 use createDecipheriv() */ function createDecipher(algorithm: CipherCCMTypes, password: string | Buffer | NodeJS.TypedArray | DataView, options: CipherCCMOptions): DecipherCCM; - /** @deprecated since v10.0.0 use createCipheriv() */ + /** @deprecated since v10.0.0 use createDecipheriv() */ function createDecipher(algorithm: CipherGCMTypes, password: string | Buffer | NodeJS.TypedArray | DataView, options?: CipherGCMOptions): DecipherGCM; - /** @deprecated since v10.0.0 use createCipheriv() */ + /** @deprecated since v10.0.0 use createDecipheriv() */ function createDecipher(algorithm: string, password: string | Buffer | NodeJS.TypedArray | DataView, options?: stream.TransformOptions): Decipher; function createDecipheriv( diff --git a/types/node/v11/crypto.d.ts b/types/node/v11/crypto.d.ts index 6f400bdbca..43fc2b8254 100644 --- a/types/node/v11/crypto.d.ts +++ b/types/node/v11/crypto.d.ts @@ -208,11 +208,11 @@ declare module "crypto" { setAAD(buffer: Buffer, options?: { plaintextLength: number }): this; getAuthTag(): Buffer; } - /** @deprecated since v10.0.0 use createCipheriv() */ + /** @deprecated since v10.0.0 use createDecipheriv() */ function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM; - /** @deprecated since v10.0.0 use createCipheriv() */ + /** @deprecated since v10.0.0 use createDecipheriv() */ function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM; - /** @deprecated since v10.0.0 use createCipheriv() */ + /** @deprecated since v10.0.0 use createDecipheriv() */ function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher; function createDecipheriv(