From 1c4251df433d6aff6a22884c8e1dbd9dabba13fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Keller?= Date: Tue, 16 Mar 2021 10:09:25 +0100 Subject: [PATCH] fix(lib/db): type mismatch Fixes "Type 'string' is not assignable to type 'number'." TS warning --- examples/with-mysql/lib/db.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-mysql/lib/db.ts b/examples/with-mysql/lib/db.ts index ede9544eca0f4..07f3d78e29d67 100644 --- a/examples/with-mysql/lib/db.ts +++ b/examples/with-mysql/lib/db.ts @@ -6,7 +6,7 @@ export const db = mysql({ database: process.env.MYSQL_DATABASE, user: process.env.MYSQL_USERNAME, password: process.env.MYSQL_PASSWORD, - port: process.env.MYSQL_PORT, + port: parseInt(process.env.MYSQL_PORT), }, })