@wppconnect/wa-js - v3.17.0
    Preparing search index...

    Variable waitForConst

    waitFor: {
        <
            Name extends
                | "blocklist.sync"
                | "call.incoming_call"
                | (keyof ChatEventTypes)
                | "config.update"
                | (keyof ConnEventTypes)
                | "group.participant_changed"
                | "order.payment_status"
                | "status.sync"
                | (keyof WebpackEvents)
                | "alfa"
                | "beta",
        >(
            event: Name,
            timeout?: number,
        ): CancelablePromise<
            ListenerType<
                (
                    BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & WebpackEvents & {
                        alfa: string;
                        beta: (from: number, to: string) => void;
                    }
                )[Name],
            >,
        >;
        <
            Name extends
                | "blocklist.sync"
                | "call.incoming_call"
                | (keyof ChatEventTypes)
                | "config.update"
                | (keyof ConnEventTypes)
                | "group.participant_changed"
                | "order.payment_status"
                | "status.sync"
                | (keyof WebpackEvents)
                | "alfa"
                | "beta",
        >(
            event: Name,
            filter?: WaitForFilter,
        ): CancelablePromise<
            ListenerType<
                (
                    BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & WebpackEvents & {
                        alfa: string;
                        beta: (from: number, to: string) => void;
                    }
                )[Name],
            >,
        >;
        <
            Name extends
                | "blocklist.sync"
                | "call.incoming_call"
                | (keyof ChatEventTypes)
                | "config.update"
                | (keyof ConnEventTypes)
                | "group.participant_changed"
                | "order.payment_status"
                | "status.sync"
                | (keyof WebpackEvents)
                | "alfa"
                | "beta",
        >(
            event: Name,
            options?: WaitForOptions,
        ): CancelablePromise<
            ListenerType<
                (
                    BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & WebpackEvents & {
                        alfa: string;
                        beta: (from: number, to: string) => void;
                    }
                )[Name],
            >,
        >;
    } = ...

    Type declaration

      • <
            Name extends
                | "blocklist.sync"
                | "call.incoming_call"
                | (keyof ChatEventTypes)
                | "config.update"
                | (keyof ConnEventTypes)
                | "group.participant_changed"
                | "order.payment_status"
                | "status.sync"
                | (keyof WebpackEvents)
                | "alfa"
                | "beta",
        >(
            event: Name,
            timeout?: number,
        ): CancelablePromise<
            ListenerType<
                (
                    BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & WebpackEvents & {
                        alfa: string;
                        beta: (from: number, to: string) => void;
                    }
                )[Name],
            >,
        >
      • Returns a thenable object (promise interface) that resolves when a specific event occurs

        Type Parameters

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

        Parameters

        • event: Name
        • Optionaltimeout: number

        Returns CancelablePromise<
            ListenerType<
                (
                    BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & WebpackEvents & {
                        alfa: string;
                        beta: (from: number, to: string) => void;
                    }
                )[Name],
            >,
        >

      • <
            Name extends
                | "blocklist.sync"
                | "call.incoming_call"
                | (keyof ChatEventTypes)
                | "config.update"
                | (keyof ConnEventTypes)
                | "group.participant_changed"
                | "order.payment_status"
                | "status.sync"
                | (keyof WebpackEvents)
                | "alfa"
                | "beta",
        >(
            event: Name,
            filter?: WaitForFilter,
        ): CancelablePromise<
            ListenerType<
                (
                    BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & WebpackEvents & {
                        alfa: string;
                        beta: (from: number, to: string) => void;
                    }
                )[Name],
            >,
        >
      • Returns a thenable object (promise interface) that resolves when a specific event occurs

        Type Parameters

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

        Parameters

        • event: Name
        • Optionalfilter: WaitForFilter

        Returns CancelablePromise<
            ListenerType<
                (
                    BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & WebpackEvents & {
                        alfa: string;
                        beta: (from: number, to: string) => void;
                    }
                )[Name],
            >,
        >

      • <
            Name extends
                | "blocklist.sync"
                | "call.incoming_call"
                | (keyof ChatEventTypes)
                | "config.update"
                | (keyof ConnEventTypes)
                | "group.participant_changed"
                | "order.payment_status"
                | "status.sync"
                | (keyof WebpackEvents)
                | "alfa"
                | "beta",
        >(
            event: Name,
            options?: WaitForOptions,
        ): CancelablePromise<
            ListenerType<
                (
                    BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & WebpackEvents & {
                        alfa: string;
                        beta: (from: number, to: string) => void;
                    }
                )[Name],
            >,
        >
      • Returns a thenable object (promise interface) that resolves when a specific event occurs

        Type Parameters

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

        Parameters

        • event: Name
        • Optionaloptions: WaitForOptions

        Returns CancelablePromise<
            ListenerType<
                (
                    BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & WebpackEvents & {
                        alfa: string;
                        beta: (from: number, to: string) => void;
                    }
                )[Name],
            >,
        >