generated from davidbonnet/foundation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Filter.ts
25 lines (24 loc) 路 857 Bytes
/
Filter.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import type { FilterArray } from "./FilterArray";
import type { FilterBoolean } from "./FilterBoolean";
import type { FilterChildren } from "./FilterChildren";
import type { FilterCustom } from "./FilterCustom";
import type { FilterField } from "./FilterField";
import type { FilterGroup } from "./FilterGroup";
import type { FilterNumber } from "./FilterNumber";
import type { FilterString } from "./FilterString";
import type { FilterStringIntersect } from "./FilterStringIntersect";
import type { FilterStringMatch } from "./FilterStringMatch";
/**
* Describes a predicate for filtering items.
*/
export type Filter<T extends object> =
| FilterArray<T>
| FilterBoolean<T>
| FilterChildren<T>
| FilterCustom<T>
| FilterField<T>
| FilterNumber<T>
| FilterGroup<T>
| FilterString<T>
| FilterStringIntersect<T>
| FilterStringMatch<T>;