@@ -135,7 +135,7 @@ class IsOptional extends UniqRule {
135
135
static ruleName = 'isRequired'
136
136
137
137
static create ( checks : Check [ ] ) : Check [ ] {
138
- return filterByRuleName ( checks , this . ruleName ) ;
138
+ return filterByRuleName ( checks , this . ruleName )
139
139
}
140
140
}
141
141
@@ -532,15 +532,15 @@ class Select extends UniqRule {
532
532
class Custom extends UniqRule {
533
533
static config ( check : Function , ...args : any [ ] ) : object {
534
534
if ( typeof check !== 'function' ) {
535
- throw new TypeError ( 'Argument #1 is not a function' ) ;
535
+ throw new TypeError ( 'Argument #1 is not a function' )
536
536
}
537
537
538
- return { check, args} ;
538
+ return { check, args}
539
539
}
540
540
541
541
static check ( it : any , { check, args} ) : Issue [ ] {
542
542
if ( check ( it , ...args ) === true ) {
543
- return [ ] ;
543
+ return [ ]
544
544
}
545
545
546
546
return [ {
@@ -549,7 +549,7 @@ class Custom extends UniqRule {
549
549
details : {
550
550
reason : 'mismatch' ,
551
551
} ,
552
- } ] ;
552
+ } ]
553
553
}
554
554
}
555
555
@@ -774,12 +774,12 @@ class TypedProps extends Checkable {
774
774
775
775
@toStatic ( Custom )
776
776
static custom ( _check : Function , ..._args : any [ ] ) : TypedProps {
777
- return new this ( ) ;
777
+ return new this ( )
778
778
}
779
779
780
780
@toInstance ( Custom )
781
781
custom ( ) {
782
- return this ;
782
+ return this
783
783
}
784
784
}
785
785
@@ -961,12 +961,12 @@ class StrictTypedProps extends TypedProps {
961
961
962
962
@toStatic ( Custom , strictOptions )
963
963
static custom ( _check : Function , ..._args : any [ ] ) : TypedProps {
964
- return new this ( ) ;
964
+ return new this ( )
965
965
}
966
966
967
967
@toInstance ( Custom )
968
968
custom ( ) {
969
- return this ;
969
+ return this
970
970
}
971
971
}
972
972
0 commit comments