15 lines
430 B
TypeScript
15 lines
430 B
TypeScript
import { Schema } from "effect"
|
|
|
|
import { zod } from "@opencode-ai/core/effect-zod"
|
|
import { withStatics } from "@opencode-ai/core/schema"
|
|
|
|
const projectIdSchema = Schema.String.pipe(Schema.brand("ProjectID"))
|
|
|
|
export type ProjectID = typeof projectIdSchema.Type
|
|
|
|
export const ProjectID = projectIdSchema.pipe(
|
|
withStatics((schema: typeof projectIdSchema) => ({
|
|
global: schema.make("global"),
|
|
zod: zod(schema),
|
|
})),
|
|
)
|