1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-05 09:04:41 -05:00
denoland-deno/cli/bench/testdata/npm/hono/dist/request.d.ts

33 lines
901 B
TypeScript
Raw Normal View History

import type { Body } from './utils/body';
import type { Cookie } from './utils/cookie';
declare global {
interface Request<ParamKeyType extends string = string> {
param: {
(key: ParamKeyType): string;
(): Record<ParamKeyType, string>;
};
paramData?: Record<ParamKeyType, string>;
query: {
(key: string): string;
(): Record<string, string>;
};
queries: {
(key: string): string[];
(): Record<string, string[]>;
};
header: {
(name: string): string;
(): Record<string, string>;
};
cookie: {
(name: string): string;
(): Cookie;
};
parsedBody?: Promise<Body>;
parseBody: {
(): Promise<Body>;
};
}
}
export declare function extendRequestPrototype(): void;