diff options
Diffstat (limited to 'cli/bench/testdata/npm/hono/dist/request.d.ts')
-rw-r--r-- | cli/bench/testdata/npm/hono/dist/request.d.ts | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/cli/bench/testdata/npm/hono/dist/request.d.ts b/cli/bench/testdata/npm/hono/dist/request.d.ts new file mode 100644 index 000000000..aebc0b855 --- /dev/null +++ b/cli/bench/testdata/npm/hono/dist/request.d.ts @@ -0,0 +1,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; |