We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Contacts.ts, in the body of the listContacts() function, line 51 has:
Contacts.ts
listContacts()
(inError: Error, inDocs: IContact[]) => { ...
This gives me an error, because this.db.find seems to expect the inError to be a union of Error and null.
For the error to disappear, I had to change my code to this:
(inError: Error | null, inDocs: IContact[]) => { ...
The text was updated successfully, but these errors were encountered:
A similar problem occurs in the same file, for the deleteContact() function.
deleteContact()
Sorry, something went wrong.
this seems to fix #22 and #23 for me. i was having the same issues building on the cli on a mac
Thank you
Do you guys get these errors for addContact and deleteContact too? And it seems just adding | null doesn't fix the issue. https://ibb.co/8YMdTDk https://ibb.co/1ZhYXfz https://ibb.co/0yp6znX https://ibb.co/BPWnhxC
addContact
deleteContact
| null
Is your Typescript version same as mine?
No branches or pull requests
In
Contacts.ts
, in the body of thelistContacts()
function, line 51 has:(inError: Error, inDocs: IContact[]) => { ...
This gives me an error, because this.db.find seems to expect the inError to be a union of Error and null.
For the error to disappear, I had to change my code to this:
(inError: Error | null, inDocs: IContact[]) => { ...
The text was updated successfully, but these errors were encountered: