fix typos
This commit is contained in:
parent
fff115b2db
commit
d705fd184e
|
|
@ -10,7 +10,7 @@ import Foundation
|
|||
|
||||
/// Enum which represents common errors in LeadKit framework
|
||||
///
|
||||
/// - failedToCastValue: attampt to cast was failed
|
||||
/// - failedToCastValue: attempt to cast was failed
|
||||
public enum LeadKitError: Error {
|
||||
|
||||
case failedToCastValue(expectedType: Any.Type, givenType: Any.Type)
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public extension Reactive where Base: Alamofire.SessionManager {
|
|||
headers: requestParameters.headers)
|
||||
}
|
||||
|
||||
/// Method which executes request and serialize response into target object
|
||||
/// Method which executes request and serializes response into target object
|
||||
///
|
||||
/// - Parameter requestParameters: api parameters to pass Alamofire
|
||||
/// - Returns: Observable with HTTP URL Response and target object
|
||||
|
|
@ -35,7 +35,7 @@ public extension Reactive where Base: Alamofire.SessionManager {
|
|||
.flatMap { $0.rx.apiResponse() }
|
||||
}
|
||||
|
||||
/// Method which executes request and serialize response into target object
|
||||
/// Method which executes request and serializes response into target object
|
||||
///
|
||||
/// - Parameter requestParameters: api parameters to pass Alamofire
|
||||
/// - Returns: Observable with HTTP URL Response and target object
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import RxAlamofire
|
|||
|
||||
public extension Reactive where Base: DataRequest {
|
||||
|
||||
/// Method which serialize response into target object
|
||||
/// Method which serializes response into target object
|
||||
///
|
||||
/// - Returns: Observable with HTTP URL Response and target object
|
||||
func apiResponse<T: ImmutableMappable>() -> Observable<(HTTPURLResponse, T)> {
|
||||
|
|
@ -24,7 +24,7 @@ public extension Reactive where Base: DataRequest {
|
|||
}
|
||||
}
|
||||
|
||||
/// Method which serialize response into target object
|
||||
/// Method which serializes response into target object
|
||||
///
|
||||
/// - Returns: Observable with HTTP URL Response and target object
|
||||
func apiResponse<T: ObservableMappable>() -> Observable<(HTTPURLResponse, T)> where T.ModelType == T {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
/// Function which return string representation of type without ".Type" suffix
|
||||
/// Function which returns string representation of type without ".Type" suffix
|
||||
///
|
||||
/// - Parameter type: a type
|
||||
/// - Returns: string representation of type without ".Type" suffix
|
||||
|
|
|
|||
|
|
@ -17,5 +17,5 @@ public protocol StaticViewHeightProtocol {
|
|||
|
||||
- returns: view height
|
||||
*/
|
||||
static func viewHeight() -> CGFloat
|
||||
static var viewHeight: CGFloat { get }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue