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.
This commit is contained in:
Asher Gomez
2025-05-05 08:40:34 +02:00
committed by GitHub
parent 49a9c69d9e
commit e0ca9423d9
3 changed files with 2 additions and 8 deletions
+2 -3
View File
@@ -1,5 +1,4 @@
import * as path from "@std/path";
import type { Mode } from "./runtime/server/mod.ts";
export interface FreshConfig {
root?: string;
@@ -30,9 +29,9 @@ export interface ResolvedFreshConfig {
basePath: string;
staticDir: string;
/**
* Tells you in which mode Fresh is currently running in.
* The mode Fresh can run in.
*/
mode: Mode;
mode: "development" | "production";
}
export function parseRootPath(root: string, cwd: string): string {
-1
View File
@@ -12,7 +12,6 @@ export {
export type { RouteConfig } from "./types.ts";
export type { Middleware, MiddlewareFn } from "./middlewares/mod.ts";
export { staticFiles } from "./middlewares/static_files.ts";
export type { Mode } from "./runtime/server/mod.ts";
export type { FreshConfig, ResolvedFreshConfig } from "./config.ts";
export type { FreshContext, Island, PageProps } from "./context.ts";
export { createDefine, type Define } from "./define.ts";
-4
View File
@@ -1,4 +0,0 @@
/**
* The mode Fresh can run in.
*/
export type Mode = "development" | "production";