You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You’re right that the dots are causing the problem. I think you should be able to write date: "page.date.toDate('d.m.Y')" as "page.date.toDate" to get around it.
Hi,
When using the toDate() method with a IntlDateFormatter that uses a "." on a field level, the returned type is never.
Example:
date: "page.date.toDate('d.m.Y')"
returns "never" - iso "string | number".Am no expert of Typescript so couldn't really help with the issue...
Thanks!
Tom
The text was updated successfully, but these errors were encountered: