ts-flex-query
Version:
Flexible and type-safe data queries
16 lines (15 loc) • 586 B
TypeScript
import { Expression } from '../core/expression';
import { DataType } from '../types/data-type';
import { EvaluationContext } from '../types/evaluation-context';
export declare class SortExpression implements Expression {
readonly input: Expression;
readonly variableSymbol: symbol;
readonly specs: SortSpecification[];
get dataType(): DataType;
constructor(input: Expression, variableSymbol: symbol, specs: SortSpecification[]);
evaluate(context: EvaluationContext): any;
}
export interface SortSpecification {
value: Expression;
isAscending: boolean;
}