From f50a7fb5eac8fc68c2af0ddf1b2c80a9b865549c Mon Sep 17 00:00:00 2001 From: Carson Date: Sun, 4 Aug 2024 06:03:46 +0900 Subject: [PATCH] docs: until returns Inverval or DateTime conditionally (#1613) --- src/datetime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datetime.js b/src/datetime.js index e17d1adca..d4b5424cf 100644 --- a/src/datetime.js +++ b/src/datetime.js @@ -2137,7 +2137,7 @@ export default class DateTime { /** * Return an Interval spanning between this DateTime and another DateTime * @param {DateTime} otherDateTime - the other end point of the Interval - * @return {Interval} + * @return {Interval|DateTime} */ until(otherDateTime) { return this.isValid ? Interval.fromDateTimes(this, otherDateTime) : this;