mirror of
https://github.com/djhackersdev/minime.git
synced 2026-08-25 20:03:59 -05:00
Force explicit conversion of rows fetched from SQL DB
Everything is a scalar value now, and while this does involve more boilerplate it will also catch type conversion issues like "1" + 0 === "10" in the future.
This commit is contained in:
@@ -3,7 +3,7 @@ import * as sql from "sql-bricks-postgres";
|
||||
export type Id<T> = bigint & { __id: T };
|
||||
|
||||
export interface Row {
|
||||
[key: string]: any;
|
||||
[key: string]: string;
|
||||
}
|
||||
|
||||
export interface Transaction {
|
||||
|
||||
Reference in New Issue
Block a user