[node] crypto: make encryption of private key optional (#37158)

This commit is contained in:
Klára Erlebachová
2019-07-31 19:04:14 +02:00
committed by Jesse Trinity
parent 4de6099016
commit 4e4e8f1d00

View File

@@ -258,8 +258,8 @@ declare module "crypto" {
interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
format: T;
cipher: string;
passphrase: string;
cipher?: string;
passphrase?: string;
}
interface RSAKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {