import { DBEntity } from "./db-entity"; import DBFilter from "./db-filter"; import DBSource from "./db-source"; import { DBPost } from "../db"; export default class DBSourceGroup extends DBEntity { id: number; name: string; color: string; filters: Promise; sources: Promise; /** * Generate a Post generator for every Source in this group. * Each returned Post is unique, and has been vetted against each Filter. * Each Post will also have all its initial links parsed into attached DBDownload objects. * * The generator is an async function that will return the next Post from the each Source, if one is available. */ getPostGenerator(): AsyncGenerator; }