@bzr/bazaar
    Preparing search index...

    Class SocialAPIInternal

    The class that encapsulates the social API

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    contacts: {
        list: () => Promise<Contact[]>;
        subscribe: (
            listener: SubscribeListener<Contact>,
        ) => Promise<() => Promise<BazaarMessage>>;
    } = ...

    Contacts

    Type Declaration

    Methods

    • Gets the user info for a given ID or handle.

      Parameters

      • query: { handle?: string; userId?: string } = {}

        The ID or handle of the user, defaults to logged in user's ID.

      Returns Promise<User>

    • Opens the social modal

      Parameters

      • withId: ((userId: string) => void) | null = null
      • onClose: (() => void) | null = null

      Returns void