feat: allow passing additional args to HandlerContext.render (#82)
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
This commit is contained in:
co-authored by
Luca Casonato
parent
6abf62c832
commit
788a85c431
+1
-1
@@ -12,7 +12,7 @@ export interface PageModule {
|
||||
export interface HandlerContext {
|
||||
req: Request;
|
||||
match: Record<string, string>;
|
||||
render?: () => Promise<Response>;
|
||||
render?: (args?: Record<string, unknown>) => Promise<Response>;
|
||||
}
|
||||
|
||||
export type Handler = (ctx: HandlerContext) => Response | Promise<Response>;
|
||||
|
||||
Reference in New Issue
Block a user