Skip to content

Commit 7aef13e

Browse files
authored
feat(type): add type definition for mysql.count method (#26)
1 parent 53d995b commit 7aef13e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ interface EggMySQL {
6060
where?: object,
6161
condition?: EggMySQLCondition
6262
): Promise<EggMySQLGetResult>;
63+
/// get counts from table
64+
count: (table: string, where?: object) => Promise<number>;
6365
/// execute sql e.g.
6466
/// query('update posts set hits = (hits + ?) where id = ?', [1, postId])
6567
query: (

0 commit comments

Comments
 (0)