本页还没有译文
本页 12 段还没译成한국어,下面显示的是英文原文。compareTemporalValues
还没翻译译自英文(tanstack.com)本页 12 段都还没译
function compareTemporalValues(a, b): number;Defined in: packages/db/src/utils/comparison.ts:313
Compare two Temporal values of the same type, returning -1, 0, or 1.
Dispatch is keyed on Symbol.toStringTag (the brand already checked by
isTemporal) rather than a.constructor, making it robust across realms
and resistant to a shadowed constructor property. Types without a static
.compare (e.g. PlainMonthDay) throw rather than fall back to string
comparison, matching Temporal's design intent.
Callers must ensure both arguments are Temporal objects; mixed types throw.
Parameters
a
unknown
b
unknown
Returns
number
AI 翻译查看英文原文