layout.ts 364 B

12345678910
  1. import { Schema } from "effect"
  2. import { zod } from "@/util/effect-zod"
  3. import { withStatics } from "@/util/schema"
  4. export const Layout = Schema.Literals(["auto", "stretch"])
  5. .annotate({ identifier: "LayoutConfig" })
  6. .pipe(withStatics((s) => ({ zod: zod(s) })))
  7. export type Layout = Schema.Schema.Type<typeof Layout>
  8. export * as ConfigLayout from "./layout"