/
opt
/
canhelp
/
node_modules
/
hono
/
dist
/
types
/
helper
/
adapter
/
/opt/canhelp/node_modules/hono/dist/types/helper/adapter
mkdir
upload
Name
Size
Mode
Actions
index.d.ts
586
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/hono/dist/types/helper/adapter/index.d.ts
(586B)
/** * @module * Adapter Helper for Hono. */ import type { Context } from '../../context'; export type Runtime = 'node' | 'deno' | 'bun' | 'workerd' | 'fastly' | 'edge-light' | 'other'; export declare const env: <T extends Record<string, unknown>, C extends Context = Context<{ Bindings: T; }>>(c: T extends Record<string, unknown> ? Context : C, runtime?: Runtime) => T & C["env"]; export declare const knownUserAgents: Partial<Record<Runtime, string>>; export declare const getRuntimeKey: () => Runtime; export declare const checkUserAgentEquals: (platform: string) => boolean;
Save
cmd:
run