BREAKING: move a bunch of types into server/ (#263)

Moved some server only types like `RouteConfig` into server/. They were
previously in runtime/.
This commit is contained in:
Luca Casonato
2022-06-21 15:21:07 +02:00
committed by GitHub
parent 3458e35d8e
commit da340daeb2
22 changed files with 245 additions and 231 deletions
+12 -2
View File
@@ -5,17 +5,27 @@ import {
ErrorPageModule,
IslandModule,
MiddlewareModule,
PageModule,
RouteModule,
StartOptions,
UnknownPageModule,
} from "./types.ts";
export type {
AppProps,
ErrorHandler,
ErrorHandlerContext,
ErrorPageProps,
FreshOptions,
Handler,
HandlerContext,
Handlers,
MiddlewareHandlerContext,
PageProps,
RenderFunction,
RouteConfig,
StartOptions,
UnknownHandler,
UnknownHandlerContext,
UnknownPageProps,
} from "./types.ts";
export { RenderContext } from "./render.tsx";
export type { InnerRenderFunction } from "./render.tsx";
@@ -23,7 +33,7 @@ export type { InnerRenderFunction } from "./render.tsx";
export interface Manifest {
routes: Record<
string,
| PageModule
| RouteModule
| MiddlewareModule
| AppModule
| ErrorPageModule