GHHG10's picture
download
raw
630 Bytes
import { Schema } from "effect"
import { NonNegativeInt, PositiveInt, RelativePath } from "../schema"
export class Entry extends Schema.Class<Entry>("FileSystem.Entry")({
path: RelativePath,
type: Schema.Literals(["file", "directory"]),
mime: Schema.String,
}) {}
export const Submatch = Schema.Struct({
text: Schema.String,
start: NonNegativeInt,
end: NonNegativeInt,
})
export type Submatch = typeof Submatch.Type
export class Match extends Schema.Class<Match>("FileSystem.Match")({
entry: Entry,
line: PositiveInt,
offset: NonNegativeInt,
text: Schema.String,
submatches: Schema.Array(Submatch),
}) {}

Xet Storage Details

Size:
630 Bytes
·
Xet hash:
75d986c39cefbbb710cb35ebc8b24e188f3d19240f3fcf9d3982a5b3c1976675

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