feat(client): add detailed response inference type by owencurt · Pull Request #5038 · honojs/hono · GitHub
Skip to content

feat(client): add detailed response inference type#5038

Open
owencurt wants to merge 1 commit into
honojs:mainfrom
owencurt:feat/client-response-details
Open

feat(client): add detailed response inference type#5038
owencurt wants to merge 1 commit into
honojs:mainfrom
owencurt:feat/client-response-details

Conversation

@owencurt

@owencurt owencurt commented Jun 24, 2026

Copy link
Copy Markdown

Closes #4270

Adds InferResponseTypeWithDetail, which infers RPC response details as a
discriminated union containing the response body, status code, response format,
and ok state.

The author should do the following, if applicable

  • Add tests
  • Run tests
  • bun run format:fix && bun run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

Verification

  • bunx tsc -p tsconfig.spec.json --noEmit --pretty false
  • env -u NO_COLOR bunx vitest --run --project main

@owencurt owencurt marked this pull request as ready for review June 24, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFC: Add type helpers for type-safe error handling in RPC Client

1 participant