You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
484 B
15 lines
484 B
import { CommandNameFlags } from "./Command";
|
|
declare type AddSet = CommandNameFlags["ENTER_SUBSCRIBER_MODE"][number];
|
|
declare type DelSet = CommandNameFlags["EXIT_SUBSCRIBER_MODE"][number];
|
|
/**
|
|
* Tiny class to simplify dealing with subscription set
|
|
*/
|
|
export default class SubscriptionSet {
|
|
private set;
|
|
add(set: AddSet, channel: string): void;
|
|
del(set: DelSet, channel: string): void;
|
|
channels(set: AddSet | DelSet): string[];
|
|
isEmpty(): boolean;
|
|
}
|
|
export {};
|