mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Merge pull request #30062 from vidi42/master
Changed executeSync `params` parameter to optional Closes: #29844
This commit is contained in:
@@ -10,3 +10,14 @@ ibmdb.open("DATABASE=<dbname>;HOSTNAME=<myhost>;UID=db2user;PWD=password;PORT=<d
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
/** imdb.ODBCStatement */
|
||||
const service = new ibmdb.ODBCStatement();
|
||||
service.executeSync();
|
||||
service.executeSync(
|
||||
["test"]
|
||||
);
|
||||
service._executeSync();
|
||||
service._executeSync(
|
||||
["test"]
|
||||
);
|
||||
|
||||
Vendored
+2
-2
@@ -150,7 +150,7 @@ export class ODBCStatement {
|
||||
// TODO: type of outparams is unknown
|
||||
_execute(cb: (err: Error, result: any[]) => void): void;
|
||||
|
||||
_executeSync(params: any[]): ODBCResult;
|
||||
_executeSync(params?: any[]): ODBCResult;
|
||||
|
||||
_executeDirect(sql: string, cb: (err: Error, result: any[]) => void): void;
|
||||
|
||||
@@ -170,7 +170,7 @@ export class ODBCStatement {
|
||||
execute(cb: (err: Error, result: any[], outparams: any) => void): void;
|
||||
execute(params: any[]): Promise<{result: any[], outparams: any}>;
|
||||
|
||||
executeSync(params: any[]): ODBCResult;
|
||||
executeSync(params?: any[]): ODBCResult;
|
||||
|
||||
executeDirect(sql: string, cb: (err: Error, result: any[]) => void): void;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user