refactor(config): migrate Server + Layout to Effect Schema (#23216)

This commit is contained in:
Kit Langton
2026-04-18 01:20:06 +00:00
committed by GitHub
parent 23a2d01282
commit 826fd3350c
4 changed files with 43 additions and 27 deletions
+10
View File
@@ -0,0 +1,10 @@
import { Schema } from "effect"
import { zod } from "@/util/effect-zod"
import { withStatics } from "@/util/schema"
export const Layout = Schema.Literals(["auto", "stretch"])
.annotate({ identifier: "LayoutConfig" })
.pipe(withStatics((s) => ({ zod: zod(s) })))
export type Layout = Schema.Schema.Type<typeof Layout>
export * as ConfigLayout from "./layout"