Skip to content

Commit

Permalink
fix: fix type information on some ConnectionOptions properties (#1637)
Browse files Browse the repository at this point in the history
Fix type information on some of the `ConnectionOptions` properties.
  • Loading branch information
arthurschreiber authored Jun 26, 2024
1 parent dadabc6 commit 025ef72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ export interface ConnectionOptions {
* during the given transaction's execution. This sets the value for `SET XACT_ABORT` during the
* initial SQL phase of a connection [documentation](https://docs.microsoft.com/en-us/sql/t-sql/statements/set-xact-abort-transact-sql).
*/
abortTransactionOnError?: boolean;
abortTransactionOnError?: boolean | undefined;

/**
* Application name used for identifying a specific application in profiling, logging or tracing tools of SQLServer.
Expand Down Expand Up @@ -757,7 +757,7 @@ export interface ConnectionOptions {
*
* Mutually exclusive with [[instanceName]]
*/
port?: number;
port?: number | undefined;

/**
* A boolean, determining whether the connection will request read only access from a SQL Server Availability
Expand Down Expand Up @@ -811,14 +811,14 @@ export interface ConnectionOptions {
*
* (default: `7_4`)
*/
tdsVersion?: string;
tdsVersion?: string | undefined;

/**
* Specifies the size of varchar(max), nvarchar(max), varbinary(max), text, ntext, and image data returned by a SELECT statement.
*
* (default: `2147483647`)
*/
textsize?: string;
textsize?: number;

/**
* If "true", the SQL Server SSL certificate is automatically trusted when the communication layer is encrypted using SSL.
Expand Down

0 comments on commit 025ef72

Please sign in to comment.