Infer enum labels

Reviewed By: LukeDefeo

Differential Revision: D51067952

fbshipit-source-id: ed39d3ab037a2169120187bf20bf4a023488c025
This commit is contained in:
Andrey Goncharov
2023-11-08 02:08:25 -08:00
committed by Facebook GitHub Bot
parent 701ae01501
commit a8f5fecc2b
6 changed files with 118 additions and 8 deletions

View File

@@ -55,11 +55,16 @@ export type FloatOperatorConfig = {
precision?: number;
};
/**
* { value: label }
*/
export type EnumLabels = {[key: string | number]: string | number};
export type EnumOperatorConfig = {
valueType: EnumFilterValueType;
key: string;
label: string;
enumLabels: {[key: string]: string};
enumLabels: EnumLabels;
};
export type AbsoluteDateOperatorConfig = {