Add internal ID typedef

This commit is contained in:
Tau 2019-04-28 22:12:38 -04:00
parent 28204a3b3b
commit af5373ea70

View File

@ -1,6 +1,8 @@
import { randomBytes } from "crypto";
import { Pool, PoolClient } from "pg";
export type Id<T> = bigint & { __id: T };
const pool = new Pool();
export function connect(): Promise<PoolClient> {