@wppconnect-team/wppconnect - v2.4.7-rc.0
    Preparing search index...

    The Node.js SDK re-exports the WAJS namespace for TypeScript. This reference describes types from WA-JS 4.8.5-rc.0. For operations available on a connected Node.js client, see Whatsapp. For functions running inside WhatsApp Web, see the WA-JS browser API.

    Variable waitForConst

    waitFor: {
        <
            Name extends
                | "config.update"
                | "blocklist.sync"
                | (keyof CallEventTypes)
                | (keyof ChatEventTypes)
                | (keyof ConnEventTypes)
                | "group.participant_changed"
                | "order.payment_status"
                | "status.sync"
                | (keyof LoaderEvents)
                | "alfa"
                | "beta",
        >(
            event: Name,
            timeout?: number,
        ): any;
        <
            Name extends
                | "config.update"
                | "blocklist.sync"
                | (keyof CallEventTypes)
                | (keyof ChatEventTypes)
                | (keyof ConnEventTypes)
                | "group.participant_changed"
                | "order.payment_status"
                | "status.sync"
                | (keyof LoaderEvents)
                | "alfa"
                | "beta",
        >(
            event: Name,
            filter?: WaitForFilter,
        ): any;
        <
            Name extends
                | "config.update"
                | "blocklist.sync"
                | (keyof CallEventTypes)
                | (keyof ChatEventTypes)
                | (keyof ConnEventTypes)
                | "group.participant_changed"
                | "order.payment_status"
                | "status.sync"
                | (keyof LoaderEvents)
                | "alfa"
                | "beta",
        >(
            event: Name,
            options?: any,
        ): any;
    }

    Type Declaration

      • <
            Name extends
                | "config.update"
                | "blocklist.sync"
                | (keyof CallEventTypes)
                | (keyof ChatEventTypes)
                | (keyof ConnEventTypes)
                | "group.participant_changed"
                | "order.payment_status"
                | "status.sync"
                | (keyof LoaderEvents)
                | "alfa"
                | "beta",
        >(
            event: Name,
            timeout?: number,
        ): any
      • Type Parameters

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

        Parameters

        • event: Name
        • Optionaltimeout: number

        Returns any

      • <
            Name extends
                | "config.update"
                | "blocklist.sync"
                | (keyof CallEventTypes)
                | (keyof ChatEventTypes)
                | (keyof ConnEventTypes)
                | "group.participant_changed"
                | "order.payment_status"
                | "status.sync"
                | (keyof LoaderEvents)
                | "alfa"
                | "beta",
        >(
            event: Name,
            filter?: WaitForFilter,
        ): any
      • Type Parameters

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

        Parameters

        • event: Name
        • Optionalfilter: WaitForFilter

        Returns any

      • <
            Name extends
                | "config.update"
                | "blocklist.sync"
                | (keyof CallEventTypes)
                | (keyof ChatEventTypes)
                | (keyof ConnEventTypes)
                | "group.participant_changed"
                | "order.payment_status"
                | "status.sync"
                | (keyof LoaderEvents)
                | "alfa"
                | "beta",
        >(
            event: Name,
            options?: any,
        ): any
      • Type Parameters

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

        Parameters

        • event: Name
        • Optionaloptions: any

        Returns any