diff --git a/index.d.ts b/index.d.ts index 139712b..e00465c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -61,7 +61,7 @@ interface EggMySQL { condition?: EggMySQLCondition ): Promise; /// get counts from table - count: (table: string, values: object) => Promise; + count: (table: string, where?: object) => Promise; /// execute sql e.g. /// query('update posts set hits = (hits + ?) where id = ?', [1, postId]) query: (