UNPKG

ts-collection

Version:

This is re-write of the java collection classes in typescript. There is some tweak as typescript templates are not as equivalent as Java.

5 lines (4 loc) 147 B
export interface Comparator<E> { compare(e1: E, e2: E): number; } export declare function isComparator<E>(param: any): param is Comparator<E>;