@beabee/beabee-common 1.10.8 → 1.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -31,18 +31,18 @@ interface BaseFilterArgs {
|
|
|
31
31
|
type: FilterType;
|
|
32
32
|
nullable?: boolean;
|
|
33
33
|
}
|
|
34
|
-
export interface ArrayFilterArgs<T extends readonly string[]
|
|
34
|
+
export interface ArrayFilterArgs<T extends readonly string[] | undefined> extends BaseFilterArgs {
|
|
35
35
|
type: "array";
|
|
36
36
|
options?: T;
|
|
37
37
|
}
|
|
38
|
-
export interface EnumFilterArgs<T extends readonly string[]
|
|
38
|
+
export interface EnumFilterArgs<T extends readonly string[]> extends BaseFilterArgs {
|
|
39
39
|
type: "enum";
|
|
40
40
|
options: T;
|
|
41
41
|
}
|
|
42
42
|
export interface OtherFilterArgs extends BaseFilterArgs {
|
|
43
43
|
type: Exclude<FilterType, "array" | "enum">;
|
|
44
44
|
}
|
|
45
|
-
export type FilterArgs = ArrayFilterArgs | EnumFilterArgs | OtherFilterArgs;
|
|
45
|
+
export type FilterArgs = ArrayFilterArgs<readonly string[] | undefined> | EnumFilterArgs<readonly string[]> | OtherFilterArgs;
|
|
46
46
|
export type Filters<T extends string = string> = Record<T, FilterArgs>;
|
|
47
47
|
export interface RuleOperatorParams {
|
|
48
48
|
args: number;
|