/
opt
/
canhelp
/
node_modules
/
hono
/
dist
/
types
/
helper
/
conninfo
/
/opt/canhelp/node_modules/hono/dist/types/helper/conninfo
mkdir
upload
Name
Size
Mode
Actions
index.d.ts
128
0644
edit
dl
rm
types.d.ts
689
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/hono/dist/types/helper/conninfo/types.d.ts
(689B)
import type { Context } from '../../context'; export type AddressType = 'IPv6' | 'IPv4' | undefined; export type NetAddrInfo = { /** * Transport protocol type */ transport?: 'tcp' | 'udp'; /** * Transport port number */ port?: number; address?: string; addressType?: AddressType; } & ({ /** * Host name such as IP Addr */ address: string; /** * Host name type */ addressType: AddressType; } | {}); /** * HTTP Connection information */ export interface ConnInfo { /** * Remote information */ remote: NetAddrInfo; } /** * Helper type */ export type GetConnInfo = (c: Context) => ConnInfo;
Save
cmd:
run