@internationalized/date
Advanced tools
Comparing version 3.5.5-nightly.4647 to 3.5.5-nightly.4649
@@ -86,5 +86,5 @@ type Mutable<T> = { | ||
/** Returns the lesser of the two provider dates. */ | ||
export function minDate<A extends DateValue, B extends DateValue>(a: A, b: B): A | B; | ||
export function minDate<A extends DateValue, B extends DateValue>(a?: A | null, b?: B | null): A | B | null | undefined; | ||
/** Returns the greater of the two provider dates. */ | ||
export function maxDate<A extends DateValue, B extends DateValue>(a: A, b: B): A | B; | ||
export function maxDate<A extends DateValue, B extends DateValue>(a?: A | null, b?: B | null): A | B | null | undefined; | ||
/** Returns whether the given date is on a weekend in the given locale. */ | ||
@@ -91,0 +91,0 @@ export function isWeekend(date: DateValue, locale: string): boolean; |
{ | ||
"name": "@internationalized/date", | ||
"version": "3.5.5-nightly.4647+1cacbf1d4", | ||
"version": "3.5.5-nightly.4649+02f242f41", | ||
"description": "Internationalized calendar, date, and time manipulation utilities", | ||
@@ -30,3 +30,3 @@ "license": "Apache-2.0", | ||
}, | ||
"gitHead": "1cacbf1d438675feb3859fee54b17e620b458d9c" | ||
"gitHead": "02f242f41f0347b3f11e50b019c197127b7d0a08" | ||
} |
@@ -241,3 +241,3 @@ /* | ||
/** Returns the lesser of the two provider dates. */ | ||
export function minDate<A extends DateValue, B extends DateValue>(a: A, b: B): A | B { | ||
export function minDate<A extends DateValue, B extends DateValue>(a?: A | null, b?: B | null): A | B | null | undefined { | ||
if (a && b) { | ||
@@ -251,3 +251,3 @@ return a.compare(b) <= 0 ? a : b; | ||
/** Returns the greater of the two provider dates. */ | ||
export function maxDate<A extends DateValue, B extends DateValue>(a: A, b: B): A | B { | ||
export function maxDate<A extends DateValue, B extends DateValue>(a?: A | null, b?: B | null): A | B | null | undefined { | ||
if (a && b) { | ||
@@ -254,0 +254,0 @@ return a.compare(b) >= 0 ? a : b; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
996477