Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Term<T>

Term is an intermediate representation of a filter (or chain of filters) before it is compiled to its final form.

Type parameters

  • T

Hierarchy

  • Term

Index

Properties

Methods

Properties

type

type: TermType

type of the Term.

This property can be used by compilers for optimisation etc.

Methods

compile

  • compile(): Except<T>
  • compile this Term into its target filter format.

    Returns Except<T>

fold

  • fold<A>(init: A, f: FoldFunc<T, A>): A
  • fold allows a function to be applied to a Term to transform it to a new value.

    If the Term is a chain, the function is applied to each member recursively.

    Type parameters

    • A

    Parameters

    Returns A

Generated using TypeDoc