Closed thisjeremiah closed 2 months ago
@thisjeremiah please submit a pr updating the typings
Hi, thank you for your work! I want to mention that birthday can also be undefined
. And on Android there is an option to not enter the year of the birthday. Maybe this should then be a number | null
.
@atheck sounds right. Feel free to submit a PR.
It seems that
givenName
andfamilyName
could benull
for fetched contacts on Android devices. This possibility is not reflected in the current TS types.This scenario can be reproduced by creating a contact with no name and only an "important date" (eg birthday) on Android.
If this doesn’t seem like a bug in the implementation, I can make a PR to update the typings for these fields.