propero-oss/easy-filter

View on GitHub
src/types/text-filter.ts

Summary

Maintainability
A
0 mins
Test Coverage
export type TextOperator =
  | "contains"
  | "not-contains"
  | "match"
  | "not-match"
  | "like"
  | "not-like"
  | "starts-with"
  | "not-starts-with"
  | "ends-with"
  | "not-ends-with";

export interface TextFilter<T = any, F = any> {
  op: TextOperator;
  field: F;
  value: string;
  ci: boolean;
}