Skip to main content

Interface: Comparable<T>

Defined in: base/core-types/base.ts:147

Interface for objects that can be compared for ordering Implementing this interface allows custom classes to define their own comparison logic

Type Parameters​

Type ParameterDefault type
Tunknown

Methods​

compare()​

compare(other): number

Defined in: base/core-types/base.ts:148

Parameters​

ParameterType
otherT

Returns​

number