From 7612f0e546c8429dc0c2a561f0ef5e2b7a6bccae Mon Sep 17 00:00:00 2001 From: Vitor Buzinaro Date: Tue, 12 Apr 2016 10:45:59 -0300 Subject: [PATCH] Updated node-mssql to v3.2.1 (#8893) * Updated node-mssql to v3.2.1 According to https://github.com/patriksimek/node-mssql#2x-to-3x-changes, updated the definitions. * Update mssql.d.ts * Update mssql.d.ts --- mssql/mssql.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mssql/mssql.d.ts b/mssql/mssql.d.ts index 500be24b8..166c3b80a 100644 --- a/mssql/mssql.d.ts +++ b/mssql/mssql.d.ts @@ -1,6 +1,6 @@ -// Type definitions for mssql v2.2.0 +// Type definitions for mssql v3.1.0 // Project: https://www.npmjs.com/package/mssql -// Definitions by: COLSA Corporation , Ben Farr +// Definitions by: COLSA Corporation , Ben Farr , Vitor Buzinaro // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -199,14 +199,14 @@ declare module "mssql" { public constructor(transaction: Transaction); public constructor(preparedStatement: PreparedStatement); public execute(procedure: string): Promise; - public execute(procedure: string, callback: (err?: any, recordsets?: Entity[], returnValue?: any) => void): void; + public execute(procedure: string, callback: (err?: any, recordsets?: Entity[], returnValue?: any, rowsAffected?: number) => void): void; public input(name: string, value: any): void; public input(name: string, type: any, value: any): void; public output(name: string, type: any, value?: any): void; public pipe(stream: NodeJS.WritableStream): void; public query(command: string): Promise; public query(command: string): Promise; - public query(command: string, callback: (err?: any, recordset?: any) => void): void; + public query(command: string, callback: (err?: any, recordset?: any, rowsAffected?: number) => void): void; public query(command: string, callback: (err?: any, recordset?: Entity[]) => void): void; public batch(batch: string): Promise; public batch(batch: string): Promise; @@ -258,7 +258,7 @@ declare module "mssql" { public prepare(statement?: string, callback?: (err?: any) => void): void; public execute(values: Object): Promise; public execute(values: Object): Promise; - public execute(values: Object, callback: (err: any, recordSet: recordSet) => void): void; + public execute(values: Object, callback: (err: any, recordSet: recordSet, rowsAffected: number) => void): void; public execute(values: Object, callback: (err: any, recordSet: Entity[]) => void): void; public unprepare(): Promise; public unprepare(callback: (err?: any) => void): void;