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

JetStreamSubscriberResponse overview

Added in v0.7.0


Table of contents


constructors

ack

Signature

export declare const ack: () => JetStreamSubscriberResponse

Added in v0.7.0

nak

Signature

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

Added in v0.7.0

term

Signature

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

Added in v0.7.0

guards

isJetStreamSubscriberResponse

Signature

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

Added in v0.7.0

models

Ack (interface)

Signature

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

Added in v0.7.0

JetStreamSubscriberResponse (type alias)

Signature

export type JetStreamSubscriberResponse = Ack | Nak | Term

Added in v0.7.0

Nak (interface)

Signature

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

Added in v0.7.0

NakOptions (interface)

Signature

export interface NakOptions {
  readonly millis?: number
}

Added in v0.7.0

Term (interface)

Signature

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

Added in v0.7.0

TermOptions (interface)

Signature

export interface TermOptions {
  readonly reason?: string
}

Added in v0.7.0

type ids

TypeId

Signature

export declare const TypeId: typeof TypeId

Added in v0.7.0

TypeId (type alias)

Signature

export type TypeId = typeof TypeId

Added in v0.7.0