Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Policy<T>

Policy is effectively a rule or constraint placed on a field that can be filtered on.

During compilation, a Policy must exist for a field otherwise compliation will fail or omit the field from the chain entirely.

Type parameters

  • T

Hierarchy

  • Policy

Index

Properties

Properties

operators

operators: Operator[]

operators is a non-empty list of filter operators allowed.

If the parser determines the operator is "default", the first is used.

term

term provides a function for constructing a Term instance for the field that will later be used in final stage of compilation.

type

type: ValueType

type indicates what ECMAScript type the value should be.

If the value does not match the type, it is rejected. Valid values are the various TYPE_* constants exported. If the value of this property is an array it is taken to mean any of these values.

Generated using TypeDoc