GHHG10's picture
download
raw
416 Bytes
export * as SessionMessageID from "./message-id"
import { Schema } from "effect"
import { withStatics } from "../schema"
import { Identifier } from "../util/identifier"
export const ID = Schema.String.check(Schema.isStartsWith("msg_")).pipe(
Schema.brand("Session.Message.ID"),
withStatics((schema) => ({
create: () => schema.make("msg_" + Identifier.ascending()),
})),
)
export type ID = typeof ID.Type

Xet Storage Details

Size:
416 Bytes
·
Xet hash:
0390c1a1b5647e9ab02429ed8435bdcb5b67f09ac022c4ba10a6eb9f57d2f5b6

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.