Skip to content

Commit e0ca942

Browse files
authored
BREAKING(core): remove Mode type (#2884)
It doesn't seem like it deserves to be it's own type. It can just be an interface property.
1 parent 49a9c69 commit e0ca942

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

src/config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as path from "@std/path";
2-
import type { Mode } from "./runtime/server/mod.ts";
32

43
export interface FreshConfig {
54
root?: string;
@@ -30,9 +29,9 @@ export interface ResolvedFreshConfig {
3029
basePath: string;
3130
staticDir: string;
3231
/**
33-
* Tells you in which mode Fresh is currently running in.
32+
* The mode Fresh can run in.
3433
*/
35-
mode: Mode;
34+
mode: "development" | "production";
3635
}
3736

3837
export function parseRootPath(root: string, cwd: string): string {

src/mod.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export {
1212
export type { RouteConfig } from "./types.ts";
1313
export type { Middleware, MiddlewareFn } from "./middlewares/mod.ts";
1414
export { staticFiles } from "./middlewares/static_files.ts";
15-
export type { Mode } from "./runtime/server/mod.ts";
1615
export type { FreshConfig, ResolvedFreshConfig } from "./config.ts";
1716
export type { FreshContext, Island, PageProps } from "./context.ts";
1817
export { createDefine, type Define } from "./define.ts";

src/runtime/server/mod.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)