Add float_equals operator

Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49230150

fbshipit-source-id: 976055a555d02ea61e29b4f2e939c9c89e44fd49
This commit is contained in:
Andrey Goncharov
2023-09-14 04:48:12 -07:00
committed by Facebook GitHub Bot
parent a0f02c57e4
commit 51073bc665
2 changed files with 21 additions and 1 deletions

View File

@@ -12,10 +12,11 @@
export type SimpleFilterValueType =
| 'NO_VALUE'
| 'INTEGER'
| 'FLOAT'
| 'STRING'
| 'STRING_SET';
export type FloatFilterValueType = 'FLOAT';
export type EnumFilterValueType = 'ENUM' | 'ENUM_SET';
export type AbsoluteDateFilterValueType = 'ABSOLUTE_DATE';
@@ -26,6 +27,13 @@ export type SimpleOperatorConfig = {
label: string;
};
export type FloatOperatorConfig = {
valueType: FloatFilterValueType;
key: string;
label: string;
precision?: number;
};
export type EnumOperatorConfig = {
valueType: EnumFilterValueType;
key: string;
@@ -44,6 +52,7 @@ export type AbsoluteDateOperatorConfig = {
export type OperatorConfig =
| SimpleOperatorConfig
| FloatOperatorConfig
| EnumOperatorConfig
| AbsoluteDateOperatorConfig;