opencode/packages/schema/src/project-id.ts
2026-07-01 13:33:59 -04:00

8 lines
254 B
TypeScript

import { Schema } from "effect"
import { statics } from "./schema.js"
export const ProjectID = Schema.String.pipe(
Schema.brand("Project.ID"),
statics((schema) => ({ global: schema.make("global") })),
)
export type ProjectID = typeof ProjectID.Type