Options
All
  • Public
  • Public/Protected
  • All
Menu

Module properties-filter

Index

Type aliases

Operations: "gt" | "lt" | "ge" | "le" | "eq" | "ne" | "in" | "notin" | "like" | "ilike"

gt - greater (>) lt - lower (<) ge - greater or equal (>=) le - lower or equal (<=) eq - equal (=) ne - not equal (!=) like - LIKE SQL statement (for strings compare) ilike - ILIKE SQL statement (for strings compare)

PropertiesFilter<T>: ("all" | "any" | PropertyFilter<T> | PropertiesFilter<T>)[]

Type parameters

  • T: Properties = Properties

PropertyFilter<T>: [T extends null ? string : keyof T | `%${string & keyof T}` | `%${string & keyof T}%` | `${string & keyof T}%`, Operations, any]

field, operation, value ['foo', 'eq', 'bar'] ['count', 'ge', 20]

Type parameters

  • T: Properties = Properties

Functions

  • featureFilter(feature: Feature<Geometry, GeoJsonProperties>, filters: PropertiesFilter<Properties>): boolean

Generated using TypeDoc