From 1e8e73f014a75ea532f8c3251cd146efa0a4e94d Mon Sep 17 00:00:00 2001 From: krryguo Date: Tue, 14 Feb 2023 17:10:28 +0800 Subject: [PATCH] feat(type): values to where --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: (