Flarum (v2.0.0-beta.2)
    Preparing search index...

    The gambit registry. A map of resource types to gambit classes that should be used to filter resources of that type. Gambits are automatically converted to API filters when requesting resources. Gambits must be applied on a filter object that has a q property containing the search query.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    gambits: Record<string, (new () => IGambit)[]> = ...

    Methods

    • Parameters

      • type: string
      • query: string
      • onmatch: (gambit: IGambit, matches: string[], negate: boolean, bit: string) => void

      Returns string