Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 761b609

Browse files
committed
Update types export
1 parent a92ca40 commit 761b609

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

server/mock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { getAppDir } from "./helpers.ts";
66
import { createHtmlResponse, loadIndexHtml } from "./html.ts";
77
import renderer from "./renderer.ts";
88
import { fetchRoute, initRouter } from "./routing.ts";
9-
import type { Middleware, RouterInit, SessionOptions, SSR } from "./types.ts";
9+
import type { Context, Middleware, RouterInit, SessionOptions, SSR } from "./types.ts";
1010

1111
type MockServerOptions = {
1212
appDir?: string;

server/mod.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { build } from "./build.ts";
55
import { watch } from "./dev.ts";
66
import { getAppDir } from "./helpers.ts";
77
import type { AlephConfig, ServeInit } from "./types.ts";
8+
export type { Context, Middleware } from "./types.ts";
89

910
/** The options for Aleph.js server. */
1011
export type ServeOptions = AlephConfig & Omit<ServeInit, "onError">;

types.d.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
declare type Context = import("./server/types.ts").Context;
2-
declare type Middleware = import("./server/types.ts").Middleware;
3-
41
declare const __aleph: {
52
// deno-lint-ignore no-explicit-any
63
importRouteModule(url: string): Promise<any>;

0 commit comments

Comments
 (0)