Etag.ts overview
Since v1.0.0
Exports Grouped by Category
convertions
toString
Signature
declare const toString: (self: Etag) => string
Since v1.0.0
layers
layer
Signature
declare const layer: Layer<Generator>
Since v1.0.0
layerWeak
Signature
declare const layerWeak: Layer<Generator>
Since v1.0.0
models
Etag (type alias)
Signature
type Etag = Weak | Strong
Since v1.0.0
Generator (interface)
Signature
export interface Generator {
readonly [GeneratorTypeId]: GeneratorTypeId
readonly fromFileInfo: (info: FileSystem.File.Info) => Effect.Effect<Etag>
readonly fromFileWeb: (file: Body.HttpBody.FileLike) => Effect.Effect<Etag>
}
Since v1.0.0
Strong (interface)
Signature
export interface Strong {
readonly _tag: "Strong"
readonly value: string
}
Since v1.0.0
Weak (interface)
Signature
export interface Weak {
readonly _tag: "Weak"
readonly value: string
}
Since v1.0.0
tags
Generator
Signature
declare const Generator: Context.Tag<Generator, Generator>
Since v1.0.0
type ids
GeneratorTypeId
Signature
declare const GeneratorTypeId: unique symbol
Since v1.0.0
GeneratorTypeId (type alias)
Signature
type GeneratorTypeId = typeof GeneratorTypeId
Since v1.0.0