refactor(schema): extract public event definitions (#33579)
This commit is contained in:
parent
858f35f1b3
commit
24b0132bc5
93 changed files with 2743 additions and 2127 deletions
|
|
@ -1,10 +1,8 @@
|
|||
export * as SessionID from "./session-id"
|
||||
|
||||
import { Schema } from "effect"
|
||||
import { descending } from "./identifier"
|
||||
import { withStatics } from "./schema"
|
||||
|
||||
export const ID = Schema.String.check(Schema.isStartsWith("ses")).pipe(
|
||||
export const SessionID = Schema.String.check(Schema.isStartsWith("ses")).pipe(
|
||||
Schema.brand("SessionID"),
|
||||
withStatics((schema) => {
|
||||
const create = () => schema.make("ses_" + descending())
|
||||
|
|
@ -14,4 +12,4 @@ export const ID = Schema.String.check(Schema.isStartsWith("ses")).pipe(
|
|||
}
|
||||
}),
|
||||
)
|
||||
export type ID = typeof ID.Type
|
||||
export type SessionID = typeof SessionID.Type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue