GHHG10's picture
download
raw
625 Bytes
export * as WorkspaceV2 from "./workspace"
import { Schema } from "effect"
import { withStatics } from "./schema"
import { Identifier } from "./util/identifier"
export const ID = Schema.String.check(Schema.isStartsWith("wrk")).pipe(
Schema.brand("WorkspaceV2.ID"),
withStatics((schema) => ({
ascending: (id?: string) => {
if (!id) return schema.make("wrk_" + Identifier.ascending())
if (!id.startsWith("wrk")) throw new Error(`ID ${id} does not start with wrk`)
return schema.make(id)
},
create: () => schema.make("wrk_" + Identifier.ascending()),
})),
)
export type ID = typeof ID.Type

Xet Storage Details

Size:
625 Bytes
·
Xet hash:
c6b847a4e634b96ea41f31d707daec25d70d426048a65d4783062c2398d762b6

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