mirror of
https://github.com/kennethnym/aris.git
synced 2026-02-02 13:11:17 +00:00
Refactor WeatherKit client to injectable interface
- Add WeatherKitClient interface and DefaultWeatherKitClient class - WeatherKitDataSource accepts either client or credentials - Simplify tests by injecting mock client directly - Update fixture generation script to use new client class Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
@@ -26,10 +26,13 @@ export {
|
||||
Certainty,
|
||||
PrecipitationType,
|
||||
ConditionCode,
|
||||
DefaultWeatherKitClient,
|
||||
type Severity as SeverityType,
|
||||
type Urgency as UrgencyType,
|
||||
type Certainty as CertaintyType,
|
||||
type PrecipitationType as PrecipitationTypeType,
|
||||
type ConditionCode as ConditionCodeType,
|
||||
type WeatherKitCredentials,
|
||||
type WeatherKitClient,
|
||||
type WeatherKitQueryOptions,
|
||||
} from "./weatherkit"
|
||||
|
||||
Reference in New Issue
Block a user