feat(server): add isPartial to context types (#1977)

This commit is contained in:
Reed von Redwitz
2023-10-26 22:26:36 +02:00
committed by GitHub
parent 7ad4610e3a
commit 63ac1e6362
13 changed files with 333 additions and 121 deletions
+3
View File
@@ -207,6 +207,7 @@ export type RouteContext<T = any, S = Record<string, unknown>> = {
params: Record<string, string>;
state: S;
data: T;
isPartial: boolean;
};
export interface RouteConfig {
@@ -268,6 +269,7 @@ export interface HandlerContext<
) => Response | Promise<Response>;
renderNotFound: (data?: NotFoundData) => Response | Promise<Response>;
state: State;
isPartial: boolean;
}
// deno-lint-ignore no-explicit-any
@@ -489,6 +491,7 @@ export interface MiddlewareHandlerContext<State = Record<string, unknown>>
state: State;
destination: router.DestinationKind;
params: Record<string, string>;
isPartial: boolean;
}
export interface MiddlewareRoute {