@@ -2,7 +2,7 @@ import Foundation
2
2
import Combine
3
3
4
4
public func NotEmptyValidator(
5
- for publisher: Published < String > . Publisher ,
5
+ for publisher: AnyPublisher < String , Never > ,
6
6
error message: String ,
7
7
tableName: String ? = nil
8
8
) -> ValidationPublisher {
@@ -15,7 +15,7 @@ public func NotEmptyValidator(
15
15
}
16
16
17
17
public func RegexValidator< Pattern> (
18
- for publisher: Published < String > . Publisher ,
18
+ for publisher: AnyPublisher < String , Never > ,
19
19
regex pattern: Pattern ,
20
20
error message: String ,
21
21
tableName: String ? = nil
@@ -29,11 +29,11 @@ public func RegexValidator<Pattern>(
29
29
}
30
30
31
31
public func OneOfRegexValidator< Pattern> (
32
- for publisher: Published < String > . Publisher ,
32
+ for publisher: AnyPublisher < String , Never > ,
33
33
regexs patterns: [ Pattern ] ,
34
34
error message: String ,
35
35
tableName: String ? = nil
36
- ) -> RichValidationPublisher < Pattern > where Pattern: RegexProtocol {
36
+ ) -> ValidationPublisherOf < Pattern > where Pattern: RegexProtocol {
37
37
publisher
38
38
. dropFirst ( )
39
39
. debounce ( for: . seconds( 0.25 ) , scheduler: RunLoop . main)
@@ -49,7 +49,7 @@ public func OneOfRegexValidator<Pattern>(
49
49
}
50
50
51
51
public func MultiRegexValidator< Pattern> (
52
- for publisher: Published < String > . Publisher ,
52
+ for publisher: AnyPublisher < String , Never > ,
53
53
regexs patterns: [ Pattern ] ,
54
54
errors messages: [ String ] ,
55
55
tableName: String ? = nil
@@ -77,7 +77,7 @@ public func MultiRegexValidator<Pattern>(
77
77
}
78
78
79
79
public func ToggleValidator(
80
- for publisher: Published < Bool > . Publisher ,
80
+ for publisher: AnyPublisher < Bool , Never > ,
81
81
error message: String ,
82
82
tableName: String ? = nil
83
83
) -> ValidationPublisher {
0 commit comments