Skip to content

Commit

Permalink
Merge pull request #740 from R3DST0RM/feature/correct-opencontactform…
Browse files Browse the repository at this point in the history
…-function-typing

Let `openContactForm` result be `Promise<Contact | null>`
  • Loading branch information
morenoh149 authored Jun 19, 2024
2 parents 7d33624 + a0a4a40 commit 5d17184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export function getContactById(contactId: string): Promise<Contact | null>;
export function getCount(): Promise<number>;
export function getPhotoForId(contactId: string): Promise<string>;
export function addContact(contact: Partial<Contact>): Promise<Contact>;
export function openContactForm(contact: Partial<Contact>): Promise<Contact>;
export function openContactForm(contact: Partial<Contact>): Promise<Contact | null>;
export function openExistingContact(contact: Contact): Promise<Contact>;
export function viewExistingContact(contact: { recordID: string }): Promise<Contact | void>
export function editExistingContact(contact: Contact): Promise<Contact>;
Expand Down

0 comments on commit 5d17184

Please sign in to comment.