From 84643c13f432a530c45f56b264f7028cdcf30955 Mon Sep 17 00:00:00 2001 From: Sabrina Tardio Date: Fri, 29 Nov 2024 12:13:41 +0100 Subject: [PATCH] tidy up typealias --- .../FeatureFlagger/ExperimentCohortsManager.swift | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Sources/BrowserServicesKit/FeatureFlagger/ExperimentCohortsManager.swift b/Sources/BrowserServicesKit/FeatureFlagger/ExperimentCohortsManager.swift index 8129cc0a6..60a03f8c4 100644 --- a/Sources/BrowserServicesKit/FeatureFlagger/ExperimentCohortsManager.swift +++ b/Sources/BrowserServicesKit/FeatureFlagger/ExperimentCohortsManager.swift @@ -18,24 +18,23 @@ import Foundation +public typealias CohortID = String +public typealias SubfeatureID = String +public typealias ParentFeatureID = String +public typealias Experiments = [String: ExperimentData] + public struct ExperimentSubfeature { let parentID: ParentFeatureID let subfeatureID: SubfeatureID let cohorts: [PrivacyConfigurationData.Cohort] } -public typealias CohortID = String -public typealias SubfeatureID = String -public typealias ParentFeatureID = String - public struct ExperimentData: Codable, Equatable { public let parentID: ParentFeatureID public let cohortID: CohortID public let enrollmentDate: Date } -public typealias Experiments = [String: ExperimentData] - public protocol ExperimentCohortsManaging { /// Retrieves all the experiments a user is enrolled in var experiments: Experiments? { get }