Cordova Contacts plugin fix

In find() method the onError callback should be optional.

https://cordova.apache.org/docs/en/3.3.0/cordova_contacts_contacts.md.ht
ml#contacts.find
This commit is contained in:
mihhail-lapushkin
2014-09-17 20:34:25 +03:00
parent ee872c6334
commit a63e254786
+1 -1
View File
@@ -32,7 +32,7 @@ interface Contacts {
*/
find(fields: string[],
onSuccess: (contacts: Contact[]) => void,
onError: (error: ContactError) => void,
onError?: (error: ContactError) => void,
options?: ContactFindOptions): void;
}