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
When passing a plain date time to dateTime.with (zoned and plain dateTime) there are runtime errors thrown, but no TypeScript errors are raised. The runtime exceptions seem to be expected as per current docs and are fixed by using .withPlainTime
This change was fairly recent, we disallowed the use of timeZone (in case of ZonedDateTime) and calendar (in case of both Plain and Zoned) in the with method. Would you like to make a PR to fix the types?
When passing a plain date time to
dateTime.with
(zoned and plain dateTime) there are runtime errors thrown, but no TypeScript errors are raised. The runtime exceptions seem to be expected as per current docs and are fixed by using.withPlainTime
Example repo: https://github.com/kavsingh/temporal-types-example
The text was updated successfully, but these errors were encountered: