Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
findContacts() {
const options = new ContactFindOptions();
options.filter = 'John';
options.multiple = true;
options.hasPhoneNumber = true;
const fields: ContactFieldType[] = ['name'];
this.contacts.find(fields, options)
.then(v => this.result = v)
.catch(v => this.error = v);
}