@aitlabs/namkwong
v0.0.117
Published
Elysia API type definitions for Eden Treaty
Readme
Namkwong
To install dependencies:
bun installTo run:
bun run devEnd-to-End Type Safety
Installation
bun add @elysia/eden
bun add -d elysia
bun add @aitlabs/namkwongExample
// client.ts
import { treaty } from '@elysia/eden'
import type { App } from '@aitlabs/namkwong'
const app = treaty<App>('localhost:3000')
app.api.error_messages.get().then((res) => {
res.data?.zh
})