@hexcuit/server
v0.8.2
Published
Hono RPC type-safe client for Project LoL Server
Readme
@hexcuit/server
Hono RPC type-safe client for Project LoL Server
Installation
npm install @hexcuit/serverUsage
import { 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 typedDevelopment
Server Development
npm install
npm run devDeploy
npm run deployType Generation
For generating/synchronizing types based on your Worker configuration:
npm run cf-typegenBuild for npm
npm run buildPublishing
This 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-tagsLicense
MIT
