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

JetStreamSubscriberResponse.ts overview

Since v0.7.0


Exports Grouped by Category


constructors

ack

Signature

declare const ack: () => JetStreamSubscriberResponse

Source

Since v0.7.0

nak

Signature

declare const nak: (options?: NakOptions) => JetStreamSubscriberResponse

Source

Since v0.7.0

term

Signature

declare const term: (options?: TermOptions) => JetStreamSubscriberResponse

Source

Since v0.7.0

guards

isJetStreamSubscriberResponse

Signature

declare const isJetStreamSubscriberResponse: (u: unknown) => u is JetStreamSubscriberResponse

Source

Since v0.7.0

models

Ack (interface)

Signature

export interface Ack {
  readonly [TypeId]: TypeId
  readonly _tag: "Ack"
}

Source

Since v0.7.0

JetStreamSubscriberResponse (type alias)

Signature

type JetStreamSubscriberResponse = Ack | Nak | Term

Source

Since v0.7.0

Nak (interface)

Signature

export interface Nak {
  readonly [TypeId]: TypeId
  readonly _tag: "Nak"
  readonly millis?: number | undefined
}

Source

Since v0.7.0

NakOptions (interface)

Signature

export interface NakOptions {
  readonly millis?: number
}

Source

Since v0.7.0

Term (interface)

Signature

export interface Term {
  readonly [TypeId]: TypeId
  readonly _tag: "Term"
  readonly reason?: string | undefined
}

Source

Since v0.7.0

TermOptions (interface)

Signature

export interface TermOptions {
  readonly reason?: string
}

Source

Since v0.7.0

type ids

TypeId

Signature

declare const TypeId: unique symbol

Source

Since v0.7.0

TypeId (type alias)

Signature

type TypeId = typeof TypeId

Source

Since v0.7.0