mirror of
https://github.com/kennethnym/freya
synced 2026-06-19 08:01:17 +01:00
Replace per-source services (LocationService, WeatherService, TflService, FeedEngineService) with a single UserSessionManager that owns all per-user state. Source creation is delegated to thin FeedSourceProvider implementations per source type. Co-authored-by: Ona <no-reply@ona.com>
10 lines
281 B
TypeScript
10 lines
281 B
TypeScript
import type { FeedSource } from "@aris/core"
|
|
|
|
export interface FeedSourceProvider {
|
|
feedSourceForUser(userId: string): FeedSource
|
|
}
|
|
|
|
export type FeedSourceProviderFn = (userId: string) => FeedSource
|
|
|
|
export type FeedSourceProviderInput = FeedSourceProvider | FeedSourceProviderFn
|