From f348feff62f3be2d1bec9273a7a79aa6fa97e3bf Mon Sep 17 00:00:00 2001 From: Tau Date: Mon, 14 Oct 2019 13:52:39 -0400 Subject: [PATCH] sql/sqlite.ts: Fix type check --- src/sql/sqlite.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sql/sqlite.ts b/src/sql/sqlite.ts index 240237d..8904bf5 100644 --- a/src/sql/sqlite.ts +++ b/src/sql/sqlite.ts @@ -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)) {