Skip to content

Commit

Permalink
tidy up typealias
Browse files Browse the repository at this point in the history
  • Loading branch information
SabrinaTardio committed Nov 29, 2024
1 parent b057431 commit 84643c1
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 84643c1

Please sign in to comment.