BREAKING CHANGE v0.16 Contact.personal() and Contact.official() deprecated, use Contact.type() instead
Created by: lijiarui
Before
const isPersonal = contact.personal()
const isOfficial = contact.official()
After
/**
* Return the type of the Contact
*
* @returns ContactType - Contact.Type.PERSONAL for personal account, Contact.Type.OFFICIAL for official account
* @example
* const isOfficial = contact.type() === Contact.Type.OFFICIAL
*/
const type = Contact.type()