mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
🤖 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:
committed by
GitHub
parent
08295f389b
commit
6e2ce96660
3
types/tedious/index.d.ts
vendored
3
types/tedious/index.d.ts
vendored
@@ -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)
|
||||
|
||||
@@ -5,6 +5,9 @@ var config: tedious.ConnectionConfig = {
|
||||
options: {
|
||||
database: "somedb",
|
||||
instanceName: "someinstance",
|
||||
cryptoCredentialsDetails: {
|
||||
minVersion: "TLSv1"
|
||||
}
|
||||
},
|
||||
authentication: {
|
||||
type: "default",
|
||||
|
||||
Reference in New Issue
Block a user