@mantlebee/ts-data
    Preparing search index...

    Type Alias DataSourceEvents<TItem>

    DataSourceEvents: EventsDefinition & {
        error: [unknown];
        isReading: [boolean];
        items: [List<TItem>];
    }

    Events of an IDataSource.

    Type Parameters

    • TItem = Any

    Type Declaration

    • error: [unknown]

      A read failed: the error, raised right before IDataSourceBase.read rethrows it. Never raised for a superseded read.

    • isReading: [boolean]

      The first read of a burst started (true) or the latest one settled (false), successfully or not: a read superseded by a newer one raises nothing.

    • items: [List<TItem>]

      The latest read succeeded: the new items.