fix: Scalar return value

This commit is contained in:
erik.balog committed 2022-01-23 13:10:34 +01:00
1 parent e9721ca5ca
commit 38e30c6640
2 files changed
+7 -4

No files matched your search

+1 -1
View File
@@ -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;