sql/sqlite.ts: Fix type check

This commit is contained in:
Tau 2019-10-14 13:52:39 -04:00
parent 6603b6aaa6
commit f348feff62

View File

@ -3,6 +3,10 @@ import * as sql from "sql-bricks-postgres";
import { DataSource, Row, Transaction } from "./api";
type MixedRow = {
[key: string]: any;
};
// bless me father for i have sinned
const fuFixup = new RegExp(" FOR UPDATE$");
@ -35,7 +39,7 @@ function _preprocess(stmt: sql.Statement) {
};
}
function _postprocess(obj: {}): Row {
function _postprocess(obj: MixedRow): Row {
const result = {};
for (const [k, v] of Object.entries(obj)) {