@darlean/fs-persistence-suite
Version:
File System Persistence Suite that uses a physical or shared file system to persist data.
20 lines (19 loc) • 518 B
TypeScript
export interface IFilterContext {
data(): {
[key: string]: unknown;
};
sortKey(idx: number): string;
partitionKey(idx: number): string;
}
export declare class Filterer {
private evaluators;
constructor();
private fillEvaluators;
process(context: IFilterContext, command: unknown): unknown;
isTruthy(value: unknown): boolean;
isFalsy(value: unknown): boolean;
private eval;
private compare;
private toCompareString;
private toString;
}