@hiero-hackers/hiero-notifications - v0.1.0
    Preparing search index...

    Interface Condition<P>

    Decides whether a payload is worth notifying about (the "notify me when XYZ"). A predicate over the payload — pure and composable.

    interface Condition<P = unknown> {
        name: string;
        matches(payload: P): boolean;
    }

    Type Parameters

    • P = unknown
    Index
    name: string
    • Parameters

      • payload: P

      Returns boolean