Fix a few types: relax contact, Email->Phone

This commit is contained in:
Scott Nonnenberg 2018-05-09 08:55:18 -07:00
parent 80b069e9b6
commit 8f934251ae
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ function getLabelForEmail(method: Email, i18n: Localizer): string {
}
}
function getLabelForPhone(method: Email, i18n: Localizer): string {
function getLabelForPhone(method: Phone, i18n: Localizer): string {
switch (method.type) {
case ContactType.CUSTOM:
return method.label || i18n('phone');

View file

@ -3,7 +3,7 @@ import Attachments from '../../app/attachments';
import { format as formatPhoneNumber } from '../types/PhoneNumber';
export interface Contact {
name: Name;
name?: Name;
number?: Array<Phone>;
email?: Array<Email>;
address?: Array<PostalAddress>;