mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-20 09:11:33 +01:00
21 lines
1.1 KiB
Swift
21 lines
1.1 KiB
Swift
#if compiler(>=6)
|
|
public typealias _AnyKeyPath = any AnyKeyPath & Sendable
|
|
public typealias _PartialKeyPath<Root> = any PartialKeyPath<Root> & Sendable
|
|
public typealias _KeyPath<Root, Value> = any KeyPath<Root, Value> & Sendable
|
|
public typealias _WritableKeyPath<Root, Value> = any WritableKeyPath<Root, Value> & Sendable
|
|
public typealias _ReferenceWritableKeyPath<Root, Value> = any ReferenceWritableKeyPath<
|
|
Root, Value
|
|
>
|
|
& Sendable
|
|
public typealias _PartialCaseKeyPath<Root> = any PartialCaseKeyPath<Root> & Sendable
|
|
public typealias _CaseKeyPath<Root, Value> = any CaseKeyPath<Root, Value> & Sendable
|
|
#else
|
|
public typealias _AnyKeyPath = AnyKeyPath
|
|
public typealias _PartialKeyPath<Root> = PartialKeyPath<Root>
|
|
public typealias _KeyPath<Root, Value> = KeyPath<Root, Value>
|
|
public typealias _WritableKeyPath<Root, Value> = WritableKeyPath<Root, Value>
|
|
public typealias _ReferenceWritableKeyPath<Root, Value> = ReferenceWritableKeyPath<Root, Value>
|
|
public typealias _PartialCaseKeyPath<Root> = PartialCaseKeyPath<Root>
|
|
public typealias _CaseKeyPath<Root, Value> = CaseKeyPath<Root, Value>
|
|
#endif
|