@ac-essentials/misc-util
    Preparing search index...

    Interface ISubscribable<T>

    Interface representing an object that allows subscribers to register for notifications.

    interface ISubscribable<T extends unknown[] = never[]> {
        isSubscribed(subscriber: Callback<T>): boolean;
        subscribe(
            subscriber: Callback<T>,
            options?: SubscribableSubscribeOptions,
        ): null | Callback;
        unsubscribe(subscriber: Callback<T>): void;
    }

    Type Parameters

    • T extends unknown[] = never[]

      Tuple type representing the arguments that will be passed to subscriber functions.

    Implemented by

    Index

    Methods