From 25a109d9ea27ad3a76fdce14bba283e953af9bce Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 19 Aug 2022 15:54:54 +0530 Subject: chore(bench): add flash router benchmarks (#15495) --- cli/bench/testdata/npm/hono/dist/request.d.ts | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 cli/bench/testdata/npm/hono/dist/request.d.ts (limited to 'cli/bench/testdata/npm/hono/dist/request.d.ts') 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 { + param: { + (key: ParamKeyType): string; + (): Record; + }; + paramData?: Record; + query: { + (key: string): string; + (): Record; + }; + queries: { + (key: string): string[]; + (): Record; + }; + header: { + (name: string): string; + (): Record; + }; + cookie: { + (name: string): string; + (): Cookie; + }; + parsedBody?: Promise; + parseBody: { + (): Promise; + }; + } +} +export declare function extendRequestPrototype(): void; -- cgit v1.2.3