codigo0/backend/node_modules/ioredis/built/SubscriptionSet.d.ts
planetazuzu 0201f16cf4
Some checks are pending
Auto Deploy to Server / deploy (push) Waiting to run
Update lab configuration 2026-03-22
2026-03-22 22:50:29 +01:00

15 lines
484 B
TypeScript
Executable file

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 {};