使用说明
npm install
npm run dev
npm run deploy
npm run cf-typegen
通过 CloudflareBindings 实例化时作为泛型 Hono:
// src/index.ts
const app = new Hono<{ Bindings: CloudflareBindings }>()
用于根据Worker配置生成或同步类型的工具,适用于Cloudflare Workers开发环境。
npm install
npm run dev
npm run deploy
npm run cf-typegen
通过 CloudflareBindings 实例化时作为泛型 Hono:
// src/index.ts
const app = new Hono<{ Bindings: CloudflareBindings }>()