@@ -65,30 +65,36 @@ export interface Tedious {
6565
6666export interface TediousConnection {
6767 beginTransaction (
68- callback : ( error ?: Error | null , transactionDescriptor ?: any ) => void ,
69- name ?: string ,
70- isolationLevel ?: number ,
68+ callback : (
69+ err : Error | null | undefined ,
70+ transactionDescriptor ?: any ,
71+ ) => void ,
72+ name ?: string | undefined ,
73+ isolationLevel ?: number | undefined ,
7174 ) : void
7275 cancel ( ) : boolean
7376 close ( ) : void
7477 commitTransaction (
75- callback : ( error ? : Error | null ) => void ,
76- name ?: string ,
78+ callback : ( err : Error | null | undefined ) => void ,
79+ name ?: string | undefined ,
7780 ) : void
78- connect ( callback ? : ( error ?: Error ) => void ) : void
81+ connect ( connectListener : ( err ?: Error ) => void ) : void
7982 execSql ( request : TediousRequest ) : void
8083 off ( event : 'error' , listener : ( error : unknown ) => void ) : this
8184 off ( event : string , listener : ( ...args : any [ ] ) => void ) : this
8285 on ( event : 'error' , listener : ( error : unknown ) => void ) : this
8386 on ( event : string , listener : ( ...args : any [ ] ) => void ) : this
8487 once ( event : 'end' , listener : ( ) => void ) : this
8588 once ( event : string , listener : ( ...args : any [ ] ) => void ) : this
86- reset ( callback : ( error ? : Error | null ) => void ) : void
89+ reset ( callback : ( err : Error | null | undefined ) => void ) : void
8790 rollbackTransaction (
88- callback : ( error ?: Error | null ) => void ,
89- name ?: string ,
91+ callback : ( err : Error | null | undefined ) => void ,
92+ name ?: string | undefined ,
93+ ) : void
94+ saveTransaction (
95+ callback : ( err : Error | null | undefined ) => void ,
96+ name : string ,
9097 ) : void
91- saveTransaction ( callback : ( error ?: Error | null ) => void , name : string ) : void
9298}
9399
94100export type TediousIsolationLevel = Record < string , number >
0 commit comments