Merge pull request #32707 from jamesrusso/master

[sqlanywhere] added void return type to functions which return void to prevent implicit any.
This commit is contained in:
Pranav Senthilnathan
2019-02-01 10:05:30 -08:00
committed by GitHub
+4 -4
View File
@@ -12,16 +12,16 @@ export interface SybaseConnection {
close(cb: (err?: Error) => void): void;
disconnect(cb: (err?: Error) => void): void;
connected(): boolean;
exec(query: string, cb: (err: Error | undefined, result: any) => void);
exec(query: string, cb: (err: Error | undefined, result: any) => void): void;
exec(
query: string,
placeholders: any[],
cb: (err: Error | undefined, result: any) => void
);
): void;
prepare(
query: string,
cb: (err: Error | undefined, stmt: Statement) => void
);
): void;
prepare(query: string): Statement;
commit(cb: (err: Error | undefined) => void): void;
rollback(cb: (err: Error | undefined) => void): void;
@@ -37,7 +37,7 @@ export interface ConnectionParameters {
}
export interface Statement {
exec(args: any[], cb: (err: Error | undefined, rows: any[]) => void);
exec(args: any[], cb: (err: Error | undefined, rows: any[]) => void): void;
exec(args: any[]): any[];
getMoreResults(): any[];
drop(cb: (err: Error | undefined) => void): void;