Skip to content

Commit

Permalink
fix: changing type files to declaration type files
Browse files Browse the repository at this point in the history
  • Loading branch information
wellwelwel committed Jun 26, 2023
1 parent c134683 commit 98e6f3a
Show file tree
Hide file tree
Showing 8 changed files with 256 additions and 346 deletions.
72 changes: 72 additions & 0 deletions typings/mysql/lib/protocol/sequences/ExecutableBase.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import {
OkPacket,
FieldPacket,
RowDataPacket,
ResultSetHeader,
} from '../packets/index.js';
import {
Query,
QueryError,
QueryOptions,
QueryableConstructor,
} from './Query.js';
export declare function ExecutableBase<T extends QueryableConstructor>(
Base?: T
): {
new (...args: any[]): {
execute<
T extends
| OkPacket
| ResultSetHeader
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
>(
sql: string,
callback?:
| ((err: QueryError | null, result: T, fields: FieldPacket[]) => any)
| undefined
): Query;
execute<
T_1 extends
| OkPacket
| ResultSetHeader
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
>(
sql: string,
values: any,
callback?:
| ((err: QueryError | null, result: T_1, fields: FieldPacket[]) => any)
| undefined
): Query;
execute<
T_2 extends
| OkPacket
| ResultSetHeader
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
>(
options: QueryOptions,
callback?:
| ((err: QueryError | null, result: T_2, fields?: FieldPacket[]) => any)
| undefined
): Query;
execute<
T_3 extends
| OkPacket
| ResultSetHeader
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
>(
options: QueryOptions,
values: any,
callback?:
| ((err: QueryError | null, result: T_3, fields: FieldPacket[]) => any)
| undefined
): Query;
};
} & T;
104 changes: 0 additions & 104 deletions typings/mysql/lib/protocol/sequences/ExecutableBase.ts

This file was deleted.

72 changes: 72 additions & 0 deletions typings/mysql/lib/protocol/sequences/QueryableBase.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import {
OkPacket,
FieldPacket,
RowDataPacket,
ResultSetHeader,
} from '../packets/index.js';
import {
Query,
QueryError,
QueryOptions,
QueryableConstructor,
} from './Query.js';
export declare function QueryableBase<T extends QueryableConstructor>(
Base?: T
): {
new (...args: any[]): {
query<
T extends
| OkPacket
| ResultSetHeader
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
>(
sql: string,
callback?:
| ((err: QueryError | null, result: T, fields: FieldPacket[]) => any)
| undefined
): Query;
query<
T_1 extends
| OkPacket
| ResultSetHeader
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
>(
sql: string,
values: any,
callback?:
| ((err: QueryError | null, result: T_1, fields: FieldPacket[]) => any)
| undefined
): Query;
query<
T_2 extends
| OkPacket
| ResultSetHeader
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
>(
options: QueryOptions,
callback?:
| ((err: QueryError | null, result: T_2, fields?: FieldPacket[]) => any)
| undefined
): Query;
query<
T_3 extends
| OkPacket
| ResultSetHeader
| RowDataPacket[]
| RowDataPacket[][]
| OkPacket[]
>(
options: QueryOptions,
values: any,
callback?:
| ((err: QueryError | null, result: T_3, fields: FieldPacket[]) => any)
| undefined
): Query;
};
} & T;
104 changes: 0 additions & 104 deletions typings/mysql/lib/protocol/sequences/QueryableBase.ts

This file was deleted.

Loading

0 comments on commit 98e6f3a

Please sign in to comment.