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

    Type Alias Watcher<P>

    Watcher: () => Promise<Notification<P>[]>

    Yields the notifications that are new since the last call. Injected into the watch loop, so the loop has no dependency on any data client and is fully testable with a fake watcher. The account watcher is the built-in; write your own by returning Notification<YourPayload>[].

    Type Parameters

    • P = unknown

    Type Declaration