comment: draft for future Platform type

This commit is contained in:
Vyacheslav Matyukhin 2022-03-29 05:10:49 +03:00
parent 8553dfa93f
commit 4a8377704d
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C

View File

@ -33,6 +33,21 @@ interface Platform {
fetcher: PlatformFetcher;
}
// draft for the future callback-based streaming/chunking API:
// interface FetchOptions {
// since?: string; // some kind of cursor, Date object or opaque string?
// save: (forecasts: Forecast[]) => Promise<void>;
// }
// export type PlatformFetcher = (options: FetchOptions) => Promise<void>;
// interface Platform {
// name: string;
// color?: string;
// longName: string;
// fetcher: PlatformFetcher;
// }
export const platforms: Platform[] = [
betfair,
fantasyscotus,