Type alias Comparator<InputType>
Comparator<InputType>: ((front: InputType, rear: InputType) => number | Promise<number>)
Type declaration
-
- (front: InputType, rear: InputType): number | Promise<number>
-
Parameters
-
front: InputType
-
rear: InputType
Returns number | Promise<number>