Include undefined as accepted type for IRow.

This commit is contained in:
JimiC
2017-07-14 09:41:19 +03:00
parent 6f1a0cb255
commit cf90deeaf7

View File

@@ -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 <http://www.colsa.com/>, Ben Farr <https://github.com/jaminfarr>, Vitor Buzinaro <https://github.com/buzinas>, Matt Richardson <https://github.com/mrrichar/>, Jørgen Elgaard Larsen <https://github.com/elhaard/>, Peter Keuter <https://github.com/pkeuter/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -218,7 +218,7 @@ 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 extends Array {
public add(...row: IRow): number;