Skip to main content Link Search Menu Expand Document (external link)

Subscriber.ts overview

Since v0.3.0


Exports Grouped by Category


models

Subscriber (interface)

Signature

export interface Subscriber<A, M> {
  readonly [TypeId]: TypeId
  readonly subscribe: <E, R>(
    app: SubscriberApp.SubscriberApp<A, M, E, R>
  ) => Effect.Effect<void, SubscriberError.SubscriberError, Exclude<R, M>>
  readonly healthCheck: Effect.Effect<void, SubscriberError.SubscriberError, never>
}

Source

Since v0.3.0

type ids

TypeId

Signature

declare const TypeId: unique symbol

Source

Since v0.3.0

TypeId (type alias)

Signature

type TypeId = typeof TypeId

Source

Since v0.3.0