Skip to content

Commit

Permalink
make optional fields optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Pier-Luc Gagnon authored Mar 17, 2022
1 parent cfd5e4f commit ec3cf54
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/VerifaliaRestClientConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface VerifaliaRestClientConfiguration {
* The base API endpoints for the Verifalia service: do NOT set these unless you are instructed
* to do so by the Verifalia support team.
*/
baseUris: string[];
baseUris?: string[];

/* @if TARGET='node' */

Expand All @@ -69,7 +69,7 @@ export interface VerifaliaRestClientConfiguration {
* same order as their private keys in key. If the intermediate certificates are not provided, the peer
* will not be able to validate the certificate, and the handshake will fail.
*/
cert: string | Buffer | (string | Buffer)[];
cert?: string | Buffer | (string | Buffer)[];

/**
* This field is used only for client-certificate authentication.
Expand All @@ -79,13 +79,13 @@ export interface VerifaliaRestClientConfiguration {
* The object form can only occur in an array. object.passphrase is optional. Encrypted keys will be
* decrypted with object.passphrase if provided, or options.passphrase if it is not.
*/
key: string | Buffer | (Buffer | KeyObject)[];
key?: string | Buffer | (Buffer | KeyObject)[];

/**
* This field is used only for client-certificate authentication.
* Shared passphrase used for a single private key and/or a PFX.
*/
passphrase: string
passphrase?: string

/* @endif */
}
}

0 comments on commit ec3cf54

Please sign in to comment.