From c915c21d47a2b417979b20e9e9d9b6ff30a03c0d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 31 Dec 2025 19:51:21 +0900 Subject: refactor(client): use Hono InferResponseType for API response types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace manually defined AuthResponse and User types with Hono's InferResponseType to automatically derive types from server definitions. This ensures client types stay in sync with server responses. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/server/db/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/server') diff --git a/src/server/db/index.ts b/src/server/db/index.ts index 4826710..2a152a3 100644 --- a/src/server/db/index.ts +++ b/src/server/db/index.ts @@ -2,7 +2,13 @@ import { drizzle } from "drizzle-orm/node-postgres"; import * as schema from "./schema.js"; import * as schemaCrdt from "./schema-crdt.js"; -const { POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB, POSTGRES_HOST, POSTGRES_PORT } = process.env; +const { + POSTGRES_USER, + POSTGRES_PASSWORD, + POSTGRES_DB, + POSTGRES_HOST, + POSTGRES_PORT, +} = process.env; export const db = drizzle( `postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}`, -- cgit v1.2.3-70-g09d2