chore: rename PageConfig to RouteConfig (#202)

This commit is contained in:
Luca Casonato
2022-05-23 15:52:29 +02:00
committed by GitHub
parent 0fa001f1b6
commit f9f0125282
5 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -3,8 +3,8 @@ import { ConnInfo, router, ServeInit } from "./deps.ts";
import {
AppProps,
ErrorPageProps,
PageConfig,
PageProps,
RouteConfig,
UnknownPageProps,
} from "../runtime/types.ts";
import { RenderContext, RenderFn } from "./render.tsx";
@@ -19,19 +19,19 @@ export interface PageModule {
default?: ComponentType<PageProps>;
// deno-lint-ignore no-explicit-any
handler?: Handler<any, any> | Handlers<any, any>;
config?: PageConfig;
config?: RouteConfig;
}
export interface UnknownPageModule {
default?: ComponentType<UnknownPageProps>;
handler?: UnknownHandler;
config?: PageConfig;
config?: RouteConfig;
}
export interface ErrorPageModule {
default?: ComponentType<ErrorPageProps>;
handler?: ErrorHandler;
config?: PageConfig;
config?: RouteConfig;
}
export interface IslandModule {