TypedSubscription
import { TypedSubscription } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.27.0/nats-base-client/internal_mod.ts";
TypedSubscription wraps a subscription to provide payload specific subscription semantics. That is messages are a transport for user data, and the data is presented as application specific data to the client.
class TypedSubscription<T> extends QueuedIteratorImpl<T> implements Sub<T> { }
adapter: MsgAdapter<T>;
get closed(): Promise<void>;
sub: SubscriptionImpl;
subIterDone: Deferred<void>;
drain(): Promise<void>;
getID(): number;
getMax(): number | undefined;
getPending(): number;
getProcessed(): number;
getReceived(): number;
getSubject(): string;
isClosed(): boolean;
isDraining(): boolean;
unsubscribe(max?: number): void;