diff --git a/types/mssql/index.d.ts b/types/mssql/index.d.ts index 1200bacfd0..ed45eccf4d 100644 --- a/types/mssql/index.d.ts +++ b/types/mssql/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for mssql 4.0.4 +// Type definitions for mssql 4.0.5 // Project: https://www.npmjs.com/package/mssql // Definitions by: COLSA Corporation , Ben Farr , Vitor Buzinaro , Matt Richardson , Jørgen Elgaard Larsen , Peter Keuter // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -214,13 +214,13 @@ export interface IColumn extends ISqlType { primary: boolean; } -declare class columns { +declare class columns extends Array { public add(name: string, type: (() => ISqlType) | ISqlType, options?: IColumnOptions): number; } -type IRow = (string | number | boolean | Date | Buffer)[]; +type IRow = (string | number | boolean | Date | Buffer | undefined)[]; -declare class rows { +declare class rows extends Array { public add(...row: IRow): number; }