@wppconnect/wa-js - v4.1.0
    Preparing search index...

    Variable prependOnceListenerConst

    prependOnceListener: {
        <
            Name extends
                | "blocklist.sync"
                | "call.incoming_call"
                | (keyof ChatEventTypes)
                | "config.update"
                | (keyof ConnEventTypes)
                | "group.participant_changed"
                | "order.payment_status"
                | "status.sync"
                | (keyof LoaderEvents)
                | "alfa"
                | "beta",
        >(
            event: Name,
            listener: (
                ...args: ListenerType<
                    (
                        BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & LoaderEvents & {
                            alfa: string;
                            beta: (from: number, to: string) => void;
                        }
                    )[Name],
                >,
            ) => void,
            options: OnOptions & { objectify: true },
        ): Listener;
        <
            Name extends
                | "blocklist.sync"
                | "call.incoming_call"
                | (keyof ChatEventTypes)
                | "config.update"
                | (keyof ConnEventTypes)
                | "group.participant_changed"
                | "order.payment_status"
                | "status.sync"
                | (keyof LoaderEvents)
                | "alfa"
                | "beta",
        >(
            event: Name,
            listener: (
                ...args: ListenerType<
                    (
                        BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & LoaderEvents & {
                            alfa: string;
                            beta: (from: number, to: string) => void;
                        }
                    )[Name],
                >,
            ) => void,
            options?: boolean | OnOptions,
        ): this;
    } = ...

    Type Declaration

      • <
            Name extends
                | "blocklist.sync"
                | "call.incoming_call"
                | (keyof ChatEventTypes)
                | "config.update"
                | (keyof ConnEventTypes)
                | "group.participant_changed"
                | "order.payment_status"
                | "status.sync"
                | (keyof LoaderEvents)
                | "alfa"
                | "beta",
        >(
            event: Name,
            listener: (
                ...args: ListenerType<
                    (
                        BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & LoaderEvents & {
                            alfa: string;
                            beta: (from: number, to: string) => void;
                        }
                    )[Name],
                >,
            ) => void,
            options: OnOptions & { objectify: true },
        ): Listener
      • Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed. The listener is added to the beginning of the listeners array

        Type Parameters

        • Name extends
              | "blocklist.sync"
              | "call.incoming_call"
              | (keyof ChatEventTypes)
              | "config.update"
              | (keyof ConnEventTypes)
              | "group.participant_changed"
              | "order.payment_status"
              | "status.sync"
              | (keyof LoaderEvents)
              | "alfa"
              | "beta"

        Parameters

        Returns Listener

      • <
            Name extends
                | "blocklist.sync"
                | "call.incoming_call"
                | (keyof ChatEventTypes)
                | "config.update"
                | (keyof ConnEventTypes)
                | "group.participant_changed"
                | "order.payment_status"
                | "status.sync"
                | (keyof LoaderEvents)
                | "alfa"
                | "beta",
        >(
            event: Name,
            listener: (
                ...args: ListenerType<
                    (
                        BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & LoaderEvents & {
                            alfa: string;
                            beta: (from: number, to: string) => void;
                        }
                    )[Name],
                >,
            ) => void,
            options?: boolean | OnOptions,
        ): this
      • Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed. The listener is added to the beginning of the listeners array

        Type Parameters

        • Name extends
              | "blocklist.sync"
              | "call.incoming_call"
              | (keyof ChatEventTypes)
              | "config.update"
              | (keyof ConnEventTypes)
              | "group.participant_changed"
              | "order.payment_status"
              | "status.sync"
              | (keyof LoaderEvents)
              | "alfa"
              | "beta"

        Parameters

        Returns this