#mikewilliams-customer
1 messages · Page 1 of 1 (latest)
👋 Happy to help
you can't access default_source even with the if.
From the code you shared, I don't see TypeScript error withc.default_sourcein if function. When you mention you can't accessdefault_source, what does it mean?
I know because I had strict turned on in tsconfig. If you turn strict off it won't work at all
My initial question though is there a way to override that typeguard
for smaller projects where we don't want to be as strict
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
ah thank you
Looks like that will work. I'm doing with a promise all but looks like I can do this
It looks fine to me. You can execute the code and check if this works for you.