Something went wrong. Try again.
opencode v2 mirror
Something went wrong. Try again.
TypeScript
12345678910111213141516import { Schema } from "effect"import { descending } from "./identifier.js"import { statics } from "./schema.js"
export const SessionID = Schema.String.check(Schema.isStartsWith("ses")).pipe( Schema.brand("SessionID"), statics((schema) => { const create = () => schema.make("ses_" + descending()) return { create, descending: (id?: string) => (id === undefined ? create() : schema.make(id)), } }),)export type SessionID = typeof SessionID.Type