import { StoredComparer } from "./StoredComparer" ; /**
 * A stored comparer that compares a property to a stored value.
 */ export class PropertyStoredComparer < TValue , TProperty > implements StoredComparer < TValue > { param getProperty param comparer constructor ( private readonly getProperty , private readonly comparer ) { } inheritdoc compareTo ( value ) { return this . comparer . compareTo ( this . getProperty ( value ) ) ; } }