fynjs API
    Preparing search index...

    Type Alias WatchData<ItemT>

    Data for the progress watch event of overdue items that took longer than options.watchTime

    The overdue items are reported in two fields: watched and still. Typically watched would contain the items that are newly become overdue or again. If you are not interested in the difference, then just combine them with [].concat(watched, still).

    • watched are items that pass options.watchTime for the first time or again since they were last checked.
    • still are items already overdue by options.watchTime but have not again taken more time than options.watchTime yet.
    type WatchData<ItemT = unknown> = {
        still: WatchItemInfo<ItemT>[];
        total: number;
        watched: WatchItemInfo<ItemT>[];
        watchTime: number;
    }

    Type Parameters

    • ItemT = unknown
    Index

    Items that are already overdue but have not again taken more time than options.watchTime yet

    total: number

    total number of items triggered in watched and still combined

    watched: WatchItemInfo<ItemT>[]

    Items that took over options.watchTime for the first time or again since they were last checked

    watchTime: number

    time an item has to take before it's reported