Skip to content

Commit

Permalink
refactor: reuse ProcedureCallPacket types
Browse files Browse the repository at this point in the history
  • Loading branch information
wellwelwel committed Jun 30, 2023
1 parent 0f31a41 commit f9b073d
Showing 1 changed file with 4 additions and 28 deletions.
32 changes: 4 additions & 28 deletions typings/mysql/lib/protocol/sequences/promise/QueryableBase.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,7 @@ export declare function QueryableBase<T extends QueryableConstructor>(
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
| ProcedureCallPacket<
| OkPacket
| ResultSetHeader
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
>
| ProcedureCallPacket
>(
sql: string
): Promise<[T, FieldPacket[]]>;
Expand All @@ -35,13 +29,7 @@ export declare function QueryableBase<T extends QueryableConstructor>(
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
| ProcedureCallPacket<
| OkPacket
| ResultSetHeader
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
>
| ProcedureCallPacket
>(
sql: string,
values: any
Expand All @@ -53,13 +41,7 @@ export declare function QueryableBase<T extends QueryableConstructor>(
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
| ProcedureCallPacket<
| OkPacket
| ResultSetHeader
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
>
| ProcedureCallPacket
>(
options: QueryOptions
): Promise<[T, FieldPacket[]]>;
Expand All @@ -70,13 +52,7 @@ export declare function QueryableBase<T extends QueryableConstructor>(
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
| ProcedureCallPacket<
| OkPacket
| ResultSetHeader
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
>
| ProcedureCallPacket
>(
options: QueryOptions,
values: any
Expand Down

0 comments on commit f9b073d

Please sign in to comment.