Skip to content

Commit bb7856b

Browse files
shangwenheshangwenhe
andauthored
fix: mysql.update missing condition define (#18)
Co-authored-by: shangwenhe <shangwenhe@kaikeba.com>
1 parent d8c7019 commit bb7856b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ interface EggMySQL {
6565
/// create object into table
6666
create: (table: string, values: object) => Promise<EggMySQLUpdateResult>;
6767
/// update object of table
68-
update: (table: string, values: object) => Promise<EggMySQLUpdateResult>;
68+
update: (table: string, values: object, condition?: EggMySQLCondition) => Promise<EggMySQLUpdateResult>;
6969
/// delete objects from table
7070
delete: (table: string, values: object) => Promise<EggMySQLUpdateResult>;
7171
/// insert object into table

0 commit comments

Comments
 (0)