🤖 Merge PR #49835 feat(tedious): set type for cryptoCredentialDetails by @elhaard

Inside tedious, this is eventually used to call tls.createSecureContext()

https://nodejs.org/docs/latest/api/tls.html#tls_tls_createsecurecontext_options

69ad8243d4/src/connection.ts (L1669)
This commit is contained in:
Jørgen Elgaard Larsen
2020-12-21 11:47:05 +01:00
committed by GitHub
parent 08295f389b
commit 6e2ce96660
2 changed files with 5 additions and 1 deletions

View File

@@ -12,6 +12,7 @@
import events = require("events");
import { SecureContextOptions } from 'tls';
export interface ColumnType {
/**
@@ -239,7 +240,7 @@ export interface ConnectionOptions {
/**
* When encryption is used, an object may be supplied that will be used for the first argument when calling tls.createSecurePair (default: {}).
*/
cryptoCredentialsDetails?: Object;
cryptoCredentialsDetails?: SecureContextOptions;
/**
* A boolean, that when true will expose received rows in Requests' done* events. See done, doneInProc and doneProc. (default: false)

View File

@@ -5,6 +5,9 @@ var config: tedious.ConnectionConfig = {
options: {
database: "somedb",
instanceName: "someinstance",
cryptoCredentialsDetails: {
minVersion: "TLSv1"
}
},
authentication: {
type: "default",