refactor(core): derive all schema.ts leaves' .zod via effect-zod walker (#23754)

This commit is contained in:
Kit Langton
2026-04-21 22:51:18 -04:00
committed by GitHub
parent 8043cfa68d
commit ad7ae7353f
9 changed files with 26 additions and 33 deletions

View File

@@ -1,8 +1,7 @@
import { Schema } from "effect"
import z from "zod"
import { Identifier } from "@/id/id"
import { ZodOverride } from "@/util/effect-zod"
import { zod, ZodOverride } from "@/util/effect-zod"
import { Newtype } from "@/util/schema"
export class QuestionID extends Newtype<QuestionID>()(
@@ -13,5 +12,5 @@ export class QuestionID extends Newtype<QuestionID>()(
return this.make(Identifier.ascending("question", id))
}
static readonly zod = Identifier.schema("question") as unknown as z.ZodType<QuestionID>
static readonly zod = zod(this)
}