mirror of
https://github.com/djhackersdev/minime.git
synced 2026-07-08 04:54:09 -05:00
sql/sqlite.ts: Fix type check
This commit is contained in:
parent
6603b6aaa6
commit
f348feff62
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user