-
-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2087 from wellwelwel/issue-2086
fix: change from .ts files to .d.ts
- Loading branch information
Showing
18 changed files
with
272 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Oops, something went wrong.