blob: aebc0b8556d1166c67a67f4cc9536cbeb0a48823 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
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;
|