Files
travel-app/node_modules/ioredis/built/SubscriptionSet.d.ts
2026-08-09 21:56:00 +00:00

15 lines
468 B
TypeScript

import { CommandNameFlags } from "./Command";
type AddSet = CommandNameFlags["ENTER_SUBSCRIBER_MODE"][number];
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 {};