Package: effect
Module: Context
Class-style service key produced by Context.Service<Self, Shape>()("Id").
When to use
Use when declaring a service as a class so the class value can serve as the
Context key.
Details
The class itself is the Context key, and its string key identifies the
service at runtime.
See
Service for creating function-style keys or class-style service keysSignature
export interface ServiceClass<in out Self, in out Identifier extends string, in out Shape>
extends Service<Self, Shape>
{
new(_: never): ServiceClass.Shape<Identifier, Shape>
readonly key: Identifier
}
Since v4.0.0