comment: draft for future Platform type
This commit is contained in:
		
							parent
							
								
									8553dfa93f
								
							
						
					
					
						commit
						4a8377704d
					
				|  | @ -33,6 +33,21 @@ interface Platform { | ||||||
|   fetcher: PlatformFetcher; |   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[] = [ | export const platforms: Platform[] = [ | ||||||
|   betfair, |   betfair, | ||||||
|   fantasyscotus, |   fantasyscotus, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user