Skip to content

Commit

Permalink
fix(contacts): missing name property, types (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
Manduro authored and ihadeed committed Jul 18, 2016
1 parent 4841f31 commit 074d166
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/plugins/contacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ export interface IContactProperties {
/** The name of this Contact, suitable for display to end users. */
displayName?: string;
/** An object containing all components of a persons name. */
name?: ContactName;
name?: IContactName;
/** A casual name by which to address the contact. */
nickname?: string;
/** An array of all the contact's phone numbers. */
phoneNumbers?: IContactField[];
/** An array of all the contact's email addresses. */
emails?: IContactField[];
/** An array of all the contact's addresses. */
addresses?: ContactAddress[];
addresses?: IContactAddress[];
/** An array of all the contact's IM addresses. */
ims?: IContactField[];
/** An array of all the contact's organizations. */
organizations?: ContactOrganization[];
organizations?: IContactOrganization[];
/** The birthday of the contact. */
birthday?: Date;
/** A note about the contact. */
Expand All @@ -36,16 +36,17 @@ export interface IContactProperties {
/**
* @private
*/
export class Contact {
export class Contact implements IContactProperties {
private _objectInstance: any;
@InstanceProperty get id(): string {return; }
@InstanceProperty get displayName(): string {return; }
@InstanceProperty get nickname(): ContactName {return; }
@InstanceProperty get phoneNumbers(): string {return; }
@InstanceProperty get name(): IContactName {return; }
@InstanceProperty get nickname(): string {return; }
@InstanceProperty get phoneNumbers(): IContactField[] {return; }
@InstanceProperty get emails(): IContactField[] {return; }
@InstanceProperty get addresses(): ContactAddress[] {return; }
@InstanceProperty get addresses(): IContactAddress[] {return; }
@InstanceProperty get ims(): IContactField[] {return; }
@InstanceProperty get organizations(): ContactOrganization[] {return; }
@InstanceProperty get organizations(): IContactOrganization[] {return; }
@InstanceProperty get birthday(): Date {return; }
@InstanceProperty get note(): string {return; }
@InstanceProperty get photos(): IContactField[] {return; }
Expand Down

0 comments on commit 074d166

Please sign in to comment.