File tree Expand file tree Collapse file tree
packages/opencode/src/project Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import z from "zod"
21import { and } from "drizzle-orm"
32import { Database } from "@/storage/db"
43import { eq } from "drizzle-orm"
@@ -89,13 +88,13 @@ export function fromRow(row: Row): Info {
8988 }
9089}
9190
92- export const UpdateInput = z . object ( {
93- projectID : ProjectID . zod ,
94- name : z . string ( ) . optional ( ) ,
95- icon : zod ( ProjectIcon ) . optional ( ) ,
96- commands : zod ( ProjectCommands ) . optional ( ) ,
91+ export const UpdateInput = Schema . Struct ( {
92+ projectID : ProjectID ,
93+ name : Schema . optional ( Schema . String ) ,
94+ icon : Schema . optional ( ProjectIcon ) ,
95+ commands : Schema . optional ( ProjectCommands ) ,
9796} )
98- export type UpdateInput = z . infer < typeof UpdateInput >
97+ export type UpdateInput = Types . DeepMutable < Schema . Schema . Type < typeof UpdateInput > >
9998
10099export const UpdatePayload = Schema . Struct ( {
101100 name : Schema . optional ( Schema . String ) ,
You can’t perform that action at this time.
0 commit comments