UNPKG

@odata2ts/odata-query-objects

Version:

Q-Objects are the magic sauce for the odata-query-builder and allow for renaming and type conversion

13 lines (12 loc) 614 B
import { NumericEnumLike, NumericEnumMember } from "../../enum/EnumModel"; import { NumericEnumConverter } from "../../enum/NumericEnumConverter"; import { BaseEnumPath } from "./BaseEnumPath"; export declare class QNumericEnumPath<EnumType extends NumericEnumLike> extends BaseEnumPath<NumericEnumMember<EnumType>> { protected theEnum: EnumType; readonly converter: NumericEnumConverter<EnumType>; constructor(path: string, theEnum: EnumType); /** * We require the string value of the enum for any OData operation */ protected mapValue(value: NumericEnumMember<EnumType>): string; }