Hono RPC type-safe client for Project LoL Server
npm install @hexcuit/serverimport { hcWithType, type Client } from '@hexcuit/server'
// Create type-safe client
const client = hcWithType('https://your-api.com')
// Type-safe API calls
const result = await client.rank.$get({
query: { discordIds: ['123', '456'] }
})
// Type inference works automatically
const ranks = result.ranks // fully typednpm install
npm run devnpm run deployFor generating/synchronizing types based on your Worker configuration:
npm run cf-typegennpm run buildThis package is automatically published to npm via GitHub Actions when a new version tag is pushed:
npm version patch # 0.1.7 → 0.1.8
git push --follow-tagsMIT