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/client/api/types.ts | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/client/api/types.ts') diff --git a/src/client/api/types.ts b/src/client/api/types.ts index eaf69eb..70918fe 100644 --- a/src/client/api/types.ts +++ b/src/client/api/types.ts @@ -1,14 +1,3 @@ -export interface User { - id: string; - username: string; -} - -export interface AuthResponse { - accessToken: string; - refreshToken: string; - user: User; -} - export interface ApiError { error: { message: string; -- cgit v1.2.3-70-g09d2