fix(server): change RouteContext type parameter default to any (#1536)

This commit is contained in:
Reed von Redwitz
2023-07-28 10:45:04 +02:00
committed by GitHub
parent efbff06fca
commit 87d52e24dd
+3 -5
View File
@@ -59,11 +59,9 @@ export interface PageProps<T = any, S = Record<string, unknown>> {
/**
* Context passed to async route components.
*/
export type RouteContext<T = unknown, S = Record<string, unknown>> =
& Omit<
HandlerContext<T, S>,
"render"
>
// deno-lint-ignore no-explicit-any
export type RouteContext<T = any, S = Record<string, unknown>> =
& Omit<HandlerContext<T, S>, "render">
& Omit<PageProps<unknown, S>, "data">;
export interface RouteConfig {