From 1405d1c6197e1cc8ee178b6f19b79903cd7ff9fe Mon Sep 17 00:00:00 2001 From: Evghenii Vasilovici Date: Thu, 17 May 2018 10:26:56 +0200 Subject: [PATCH] Change result type of `columns()` and `tables()` callback definition of `Database`. Add `ODBCResult.fetchSync()` definition --- types/ibm_db/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/ibm_db/index.d.ts b/types/ibm_db/index.d.ts index de54b9ca26..24699c195e 100644 --- a/types/ibm_db/index.d.ts +++ b/types/ibm_db/index.d.ts @@ -104,9 +104,9 @@ export class Database implements Options { rollbackTransactionSync(): Database; - columns(catalog: string | null, schema: string | null, table: string | null, column: string | null, cb: (error: Error, res: ODBCResult) => void): void; + columns(catalog: string | null, schema: string | null, table: string | null, column: string | null, cb: (error: Error, res: any[]) => void): void; - tables(catalog: string | null, schema: string | null, table: string | null, type: string | null, cb: (error: Error, res: ODBCResult) => void): void; + tables(catalog: string | null, schema: string | null, table: string | null, type: string | null, cb: (error: Error, res: any[]) => void): void; describe(obj: DescribeObject, cb: (error: Error, res: any[]) => void): void; @@ -187,6 +187,7 @@ export class ODBCStatement { export class ODBCResult { fetchMode: number; + fetchSync(): any[]; fetchAllSync(): any[]; moreResultsSync(): any[]; closeSync(): void;