ng2-validation
Advanced tools
Comparing version 1.4.0 to 1.4.1
import { ValidatorFn, AbstractControl } from '@angular/forms'; | ||
export declare type EqualValueType = string | boolean | number; | ||
export declare class CustomValidators { | ||
@@ -84,3 +85,3 @@ /** | ||
*/ | ||
static equal(str: string): ValidatorFn; | ||
static equal(str: EqualValueType): ValidatorFn; | ||
/** | ||
@@ -87,0 +88,0 @@ * Validator that requires controls to have a value to equal another control. |
import { OnInit } from '@angular/core'; | ||
import { Validator, AbstractControl } from '@angular/forms'; | ||
import { EqualValueType } from '../custom-validators'; | ||
export declare class EqualValidator implements Validator, OnInit { | ||
equal: string; | ||
equal: EqualValueType; | ||
private validator; | ||
@@ -6,0 +7,0 @@ ngOnInit(): void; |
@@ -30,3 +30,3 @@ "use strict"; | ||
core_1.Input(), | ||
__metadata('design:type', String) | ||
__metadata('design:type', Object) | ||
], EqualValidator.prototype, "equal", void 0); | ||
@@ -33,0 +33,0 @@ EqualValidator = __decorate([ |
{ | ||
"name": "ng2-validation", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "angular2 validation", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1182
96481
65
1
0