Skip to content

server: type route builder HTTP status casts without any - #84

Open
Herklos wants to merge 1 commit into
masterfrom
cursor/route-builder-status-types-6230
Open

Herklos wants to merge 1 commit into
masterfrom
cursor/route-builder-status-types-6230

Conversation

@Herklos

@Herklos Herklos commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace the thirteen status as any casts in packages/ts/server/src/router/route-builder.ts with Hono's ContentfulStatusCode type, imported from hono/utils/http-status.
  • Type-only change. The emitted JavaScript is identical (verified by transpiling the file before and after and diffing the output).

Verification

  • tsc --noEmit for packages/ts/server: passes.
  • pnpm build for packages/ts/server: passes.
  • pnpm test for packages/ts/server: 51 files passed, 1 skipped; 728 tests passed, 12 skipped.

Notes

  • No behavior change and no dependency or lockfile change.
  • CHANGELOG.md is not touched here because other open PRs already edit it.
Open in Web Open in Cursor 

Replace thirteen status as any casts in route-builder with the Hono
ContentfulStatusCode type. Type-only: the emitted JavaScript is unchanged,
server typecheck, build and vitest suite pass.

Co-authored-by: herklos.dev <herklos.dev@protonmail.com>
@Herklos Herklos self-assigned this Oct 13, 2026
@cursor
cursor Bot marked this pull request as ready for review October 13, 2026 13:09

This branch has not been deployed

No deployments
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.

2 participants