Skip to content
Permalink
Browse files

Use @available(_:_:renamed:) instead of @available(_:_:message:) to l…

…et Xcode automatically suggest a fix
  • Loading branch information...
seasox authored and freak4pc committed Sep 9, 2019
1 parent 6b2a406 commit f51e1ade1f289f51ba60322dd2c5069053528da0
@@ -94,7 +94,7 @@ public protocol EventConvertible {
/// Type of element in event
associatedtype Element

@available(*, deprecated, message: "Use `Element` instead.")
@available(*, deprecated, renamed: "Element")
typealias ElementType = Element

/// Event representation of this instance
@@ -11,7 +11,7 @@ public protocol ObservableConvertibleType {
/// Type of elements in sequence.
associatedtype Element

@available(*, deprecated, message: "Use `Element` instead.")
@available(*, deprecated, renamed: "Element")
typealias E = Element

/// Converts `self` to `Observable` sequence.
@@ -11,7 +11,7 @@ public protocol ObserverType {
/// The type of elements in sequence that observer can observe.
associatedtype Element

@available(*, deprecated, message: "Use `Element` instead.")
@available(*, deprecated, renamed: "Element")
typealias E = Element

/// Notify observer about sequence event.
@@ -39,7 +39,7 @@ public protocol ReactiveCompatible {
/// Extended type
associatedtype ReactiveBase

@available(*, deprecated, message: "Use `ReactiveBase` instead.")
@available(*, deprecated, renamed: "ReactiveBase")
typealias CompatibleType = ReactiveBase

/// Reactive extensions.
@@ -13,7 +13,7 @@ public protocol SubjectType : ObservableType {
/// Usually this type is type of subject itself, but it doesn't have to be.
associatedtype Observer: ObserverType

@available(*, deprecated, message: "Use `Observer` instead.")
@available(*, deprecated, renamed: "Observer")
typealias SubjectObserverType = Observer

/// Returns observer interface for subject.
@@ -23,10 +23,10 @@ public protocol PrimitiveSequenceType {
/// Sequence element type
associatedtype Element

@available(*, deprecated, message: "Use `Trait` instead.")
@available(*, deprecated, renamed: "Trait")
typealias TraitType = Trait

@available(*, deprecated, message: "Use `Element` instead.")
@available(*, deprecated, renamed: "Element")
typealias ElementType = Element

// Converts `self` to primitive sequence.

0 comments on commit f51e1ad

Please sign in to comment.
You can’t perform that action at this time.