Racehorse
    Preparing search index...

    Interface ContactsManager

    interface ContactsManager {
        getContact(contactId: number): null | Contact;
        pickContact(): Promise<null | Contact>;
    }
    Index

    Methods

    • Get contact by ID.

      Parameters

      • contactId: number

        The ID of the contact to retrieve.

      Returns null | Contact

      The contact or null if there's no such contact.

    • Returns a contact picked by the user.

      Returns Promise<null | Contact>

      The contact or null if user didn't pick a contact or didn't grant permissions.