diff --git a/packages/cli/src/res/PgTyped.res b/packages/cli/src/res/PgTyped.res index 71e3484f..5a1016b0 100644 --- a/packages/cli/src/res/PgTyped.res +++ b/packages/cli/src/res/PgTyped.res @@ -24,7 +24,7 @@ module Pg = { /** default process.env.PGUSER || process.env.USER*/ user?: string, /**default process.env.PGPASSWORD*/ password?: string, /** default process.env.PGHOST*/ host?: string, - /** default process.env.PGPORT*/ port?: float, + /** default process.env.PGPORT*/ port?: int, /** default process.env.PGDATABASE || user*/ database?: string, /** e.g. postgres://user:password@host:5432/database*/ connectionString?: string, /** passed directly to node.TLSSocket, supports all tls.connect options*/ ssl?: unknown, diff --git a/packages/example/src/rescript.test.res b/packages/example/src/rescript.test.res index 6d55a218..22f5237e 100644 --- a/packages/example/src/rescript.test.res +++ b/packages/example/src/rescript.test.res @@ -60,7 +60,7 @@ let client = ref(None) let getClient = () => client.contents->Option.getExn beforeAll(async () => { - let dbClient = Pg.Client.make(dbConfig) + let dbClient = Pg.Client.make(Config(dbConfig)) client := Some(dbClient) await dbClient->Pg.Client.connect })