mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
fix lint issues
This commit is contained in:
Vendored
+5
-6
@@ -1,7 +1,6 @@
|
||||
// Type definitions for sqlanywhere 1.0
|
||||
// Project: https://github.com/sqlanywhere/node-sqlanywhere
|
||||
// Definitions by: Peter Keuter <https://github.com/pkeuter>
|
||||
// Updated by: James Russo <https://github.com/jamesrusso>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
export function createConnection(): SybaseConnection;
|
||||
|
||||
@@ -13,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) : 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;
|
||||
): void;
|
||||
prepare(
|
||||
query: string,
|
||||
cb: (err: Error | undefined, stmt: Statement) => void
|
||||
) : void;
|
||||
): void;
|
||||
prepare(query: string): Statement;
|
||||
commit(cb: (err: Error | undefined) => void): void;
|
||||
rollback(cb: (err: Error | undefined) => void): void;
|
||||
@@ -38,10 +37,10 @@ export interface ConnectionParameters {
|
||||
}
|
||||
|
||||
export interface Statement {
|
||||
exec(args: any[], cb: (err: Error | undefined, rows: any[]) => void) : 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;
|
||||
drop(cb: (err: Error | undefined) => void): void;
|
||||
}
|
||||
declare const _default: {
|
||||
createConnection: typeof createConnection;
|
||||
|
||||
Reference in New Issue
Block a user