#mikewilliams-customer

1 messages · Page 1 of 1 (latest)

timid glade
#

👋 Happy to help

#

you can't access default_source even with the if.
From the code you shared, I don't see TypeScript error with c.default_source in if function. When you mention you can't access default_source, what does it mean?

tiny vault
#

My initial question though is there a way to override that typeguard

#

for smaller projects where we don't want to be as strict

timid glade
#

Let me double check

#

If you are certain that customer is not deleted, you can do following:

#

Otherwise, I'd recommend doing a deleted check

tiny vault
#

ah thank you

#

Looks like that will work. I'm doing with a promise all but looks like I can do this

timid glade
#

It looks fine to me. You can execute the code and check if this works for you.