@odata2ts/odata-query-objects
Version:
Q-Objects are the magic sauce for the odata-query-builder and allow for renaming and type conversion
10 lines (9 loc) • 319 B
TypeScript
export type NumericEnumLike = {
[id: string]: unknown | string;
[nu: number]: string;
};
export type NumericEnumMember<EnumType> = EnumType[keyof EnumType];
export type StringEnumLike = {
[id: string]: unknown | string;
};
export type StringEnumMember<EnumType> = EnumType[keyof EnumType] | keyof EnumType;