You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
425 B

2 years ago
  1. import { Task } from '../managers/tasks';
  2. import { Entry, EntryItem, ReaderOptions } from '../types';
  3. import ReaderAsync from '../readers/async';
  4. import Provider from './provider';
  5. export default class ProviderAsync extends Provider<Promise<EntryItem[]>> {
  6. protected _reader: ReaderAsync;
  7. read(task: Task): Promise<EntryItem[]>;
  8. api(root: string, task: Task, options: ReaderOptions): Promise<Entry[]>;
  9. }