mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-01 11:50:54 +08:00
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:
Vendored
+1
-1
@@ -32,7 +32,7 @@ interface Contacts {
|
||||
*/
|
||||
find(fields: string[],
|
||||
onSuccess: (contacts: Contact[]) => void,
|
||||
onError: (error: ContactError) => void,
|
||||
onError?: (error: ContactError) => void,
|
||||
options?: ContactFindOptions): void;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user