Skip to content

Commit

Permalink
align tedious types.
Browse files Browse the repository at this point in the history
  • Loading branch information
igalklebanov committed Oct 5, 2024
1 parent 96eb16d commit 731ade6
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions src/dialect/mssql/mssql-dialect-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,27 +65,36 @@ export interface Tedious {

export interface TediousConnection {
beginTransaction(
callback: (error?: Error | null) => void,
transactionId?: string | undefined,
callback: (
err: Error | null | undefined,
transactionDescriptor?: any,
) => void,
name?: string | undefined,
isolationLevel?: number | undefined,
): void
cancel(): boolean
close(): void
commitTransaction(callback: (error?: Error | null) => void): void
connect(callback: (error?: Error | null) => void): void
commitTransaction(
callback: (err: Error | null | undefined) => void,
name?: string | undefined,
): void
connect(connectListener: (err?: Error) => void): void
execSql(request: TediousRequest): void
off(event: 'error', listener: (error: unknown) => void): this
off(event: string, listener: (...args: any[]) => void): this
on(event: 'error', listener: (error: unknown) => void): this
on(event: string, listener: (...args: any[]) => void): this
once(event: 'end', listener: () => void): this
once(event: string, listener: (...args: any[]) => void): this
reset(callback: (error?: Error | null) => void): void
reset(callback: (err: Error | null | undefined) => void): void
rollbackTransaction(
callback: (error?: Error | null) => void,
name?: string,
callback: (err: Error | null | undefined) => void,
name?: string | undefined,
): void
saveTransaction(
callback: (err: Error | null | undefined) => void,
name: string,
): void
saveTransaction(callback: (error?: Error | null) => void, name: string): void
}

export type TediousIsolationLevel = Record<string, number>
Expand Down

0 comments on commit 731ade6

Please sign in to comment.