@odata2ts/odata-query-objects
Version:
Q-Objects are the magic sauce for the odata-query-builder and allow for renaming and type conversion
22 lines (21 loc) • 1.36 kB
TypeScript
import { InputModel, QBasePath } from "../base/QBasePath";
export declare class QNumberPath<ConvertedType = number> extends QBasePath<number, ConvertedType> {
protected formatValue(value: number): string;
private createNewFunctionPath;
private createNewOperationPath;
plus(value: InputModel<this["converter"]>): QNumberPath<ConvertedType>;
add: (value: InputModel<this["converter"]>) => QNumberPath<ConvertedType>;
minus(value: InputModel<this["converter"]>): QNumberPath<ConvertedType>;
sub: (value: InputModel<this["converter"]>) => QNumberPath<ConvertedType>;
multiply(value: InputModel<this["converter"]>): QNumberPath<ConvertedType>;
mul: (value: InputModel<this["converter"]>) => QNumberPath<ConvertedType>;
divide(value: InputModel<this["converter"]>): QNumberPath<ConvertedType>;
div: (value: InputModel<this["converter"]>) => QNumberPath<ConvertedType>;
divideWithFraction(value: InputModel<this["converter"]>): QNumberPath<ConvertedType>;
divBy: (value: InputModel<this["converter"]>) => QNumberPath<ConvertedType>;
modulo(value: InputModel<this["converter"]>): QNumberPath<ConvertedType>;
mod: (value: InputModel<this["converter"]>) => QNumberPath<ConvertedType>;
ceiling(): QNumberPath<ConvertedType>;
floor(): QNumberPath<ConvertedType>;
round(): QNumberPath<ConvertedType>;
}