Condition<T>: {
    evaluate: ((subject: T, params: any) => boolean);
    id: string;
    type: string;
}

This interface defines callbacks intended to be registered to the Condition registry

Type Parameters

  • T = unknown

Type declaration

  • evaluate: ((subject: T, params: any) => boolean)
      • (subject: T, params: any): boolean
      • Parameters

        • subject: T
        • params: any

        Returns boolean

  • id: string
  • type: string

    The condition type, describing what to evaluate the condition for, for example "limeobject"