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/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/client/api/index.ts') diff --git a/src/client/api/index.ts b/src/client/api/index.ts index fb26b70..63d0a40 100644 --- a/src/client/api/index.ts +++ b/src/client/api/index.ts @@ -3,7 +3,9 @@ export { ApiClientError, type ApiClientOptions, apiClient, + type LoginResponse, localStorageTokenStorage, type TokenStorage, + type User, } from "./client"; -export type { ApiError, AuthResponse, Tokens, User } from "./types"; +export type { ApiError, Tokens } from "./types"; -- cgit v1.2.3-70-g09d2