mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 22:22:50 +00:00
fix: Scalar return value
This commit is contained in:
1 parent
e9721ca5ca
commit
38e30c6640
2 files changed
+7
-4
No files matched your search
+1
-1
@@ -2,7 +2,7 @@ import { RowDataPacket, ResultSetHeader, OkPacket } from 'mysql2';
|
||||
|
||||
type SQLResponse = RowDataPacket[][] | RowDataPacket[] | OkPacket | OkPacket[] | ResultSetHeader;
|
||||
|
||||
export type QueryResponse = SQLResponse | SQLResponse[];
|
||||
export type QueryResponse = SQLResponse | SQLResponse[] | RowDataPacket;
|
||||
|
||||
export type QueryType = 'insert' | 'update' | 'scalar' | 'single' | null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user