UNPKG

multitude

Version:

Comprehensive streams for push and pull

10 lines (9 loc) 357 B
import { Push } from "../../../definitions"; import { Empty } from 'type-core'; declare class Subscription<T = any> implements Push.Subscription { #private; constructor(observer: Push.Observer<T>, subscriber: Push.Subscriber<T>, ...hooks: [] | [Push.Hooks<T> | Empty]); get closed(): boolean; unsubscribe(): void; } export { Subscription };