From 7316f8f6a7bc037157a852e70909802420921574 Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Tue, 27 Mar 2018 18:13:04 +0300 Subject: [PATCH] code review note --- .../Classes/BaseTextFieldViewModel/BaseTextFieldViewModel.swift | 2 +- .../Protocols/ValidationService/OnlineValidationResult.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Classes/BaseTextFieldViewModel/BaseTextFieldViewModel.swift b/Sources/Classes/BaseTextFieldViewModel/BaseTextFieldViewModel.swift index 12af9da..3255c16 100644 --- a/Sources/Classes/BaseTextFieldViewModel/BaseTextFieldViewModel.swift +++ b/Sources/Classes/BaseTextFieldViewModel/BaseTextFieldViewModel.swift @@ -87,7 +87,7 @@ public extension BaseTextFieldViewModelEvents { return validationStateDriver } - typealias OnlineValidationClosure = (String) -> Single + typealias OnlineValidationClosure = (String) -> Single /// Method that binds text driver to validation chain (offline validation -> online validation) /// and returns online validation state driver. diff --git a/Sources/Protocols/ValidationService/OnlineValidationResult.swift b/Sources/Protocols/ValidationService/OnlineValidationResult.swift index f4cdbcd..95f7b1a 100644 --- a/Sources/Protocols/ValidationService/OnlineValidationResult.swift +++ b/Sources/Protocols/ValidationService/OnlineValidationResult.swift @@ -23,7 +23,7 @@ import Foundation /// Prototol with two fields that describes result of online validation. -public protocol OnlineValidationResult { +public protocol OnlineValidateable { /// Contains true if online validation did passed. var isValid: Bool { get }