Interface Lister<T>

An interface for listing. Returns a promise with typed list.

interface Lister<T> {
    [asyncIterator](): AsyncIterator<T, any, undefined>;
    next(): Promise<T[]>;
}

Type Parameters

  • T

Methods

  • Returns AsyncIterator<T, any, undefined>

  • Returns Promise<T[]>