hono 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/context.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { CookieOptions } from './utils/cookie';
|
|
|
4
4
|
import type { StatusCode } from './utils/http-status';
|
|
5
5
|
declare type Headers = Record<string, string>;
|
|
6
6
|
export declare type Data = string | ArrayBuffer | ReadableStream;
|
|
7
|
-
export interface Context<RequestParamKeyType extends string = string, E extends Partial<Environment> =
|
|
7
|
+
export interface Context<RequestParamKeyType extends string = string, E extends Partial<Environment> = any> {
|
|
8
8
|
req: Request<RequestParamKeyType>;
|
|
9
9
|
env: E['Bindings'];
|
|
10
10
|
event: FetchEvent;
|
package/dist/context.js
CHANGED
package/dist/hono.d.ts
CHANGED
|
@@ -37,10 +37,7 @@ declare const Hono_base: new <E_1 extends Partial<Environment> = Environment, T
|
|
|
37
37
|
options: HandlerInterface<T, E_1, U>;
|
|
38
38
|
patch: HandlerInterface<T, E_1, U>;
|
|
39
39
|
};
|
|
40
|
-
export declare class Hono<E extends {
|
|
41
|
-
Bindings?: Bindings;
|
|
42
|
-
Variables?: Variables;
|
|
43
|
-
} = Environment, P extends string = '/'> extends Hono_base<E, P, Hono<E, P>> {
|
|
40
|
+
export declare class Hono<E extends Partial<Environment> = Environment, P extends string = '/'> extends Hono_base<E, P, Hono<E, P>> {
|
|
44
41
|
readonly router: Router<Handler<string, E>>;
|
|
45
42
|
readonly strict: boolean;
|
|
46
43
|
private _tempPath;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ServeStaticOptions } from './serve-static';
|
|
2
|
-
declare const module: (options?: ServeStaticOptions) => (c: import("../../context").Context<string,
|
|
2
|
+
declare const module: (options?: ServeStaticOptions) => (c: import("../../context").Context<string, any>, next: import("../../hono").Next) => Promise<Response | undefined>;
|
|
3
3
|
export { module as serveStatic };
|