Type Alias: AsyncCompare()<Value>
AsyncCompare<
Value
>: (left
,right
) =>MaybePromiseLike
<number
>
A function that compares two values of type Value
possibly asynchronously.
A return value that awaits to:
- Less than zero implies
left < right
- Equal to zero implies
left === right
- Greater than zero implies
left > right
Type Parameters
• Value
Parameters
• left: Value
• right: Value
Returns
MaybePromiseLike
<number
>