fix(server): change RouteContext type parameter default to any (#1536)
This commit is contained in:
+3
-5
@@ -59,11 +59,9 @@ export interface PageProps<T = any, S = Record<string, unknown>> {
|
|||||||
/**
|
/**
|
||||||
* Context passed to async route components.
|
* Context passed to async route components.
|
||||||
*/
|
*/
|
||||||
export type RouteContext<T = unknown, S = Record<string, unknown>> =
|
// deno-lint-ignore no-explicit-any
|
||||||
& Omit<
|
export type RouteContext<T = any, S = Record<string, unknown>> =
|
||||||
HandlerContext<T, S>,
|
& Omit<HandlerContext<T, S>, "render">
|
||||||
"render"
|
|
||||||
>
|
|
||||||
& Omit<PageProps<unknown, S>, "data">;
|
& Omit<PageProps<unknown, S>, "data">;
|
||||||
|
|
||||||
export interface RouteConfig {
|
export interface RouteConfig {
|
||||||
|
|||||||
Reference in New Issue
Block a user