We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c154806 commit 09fd1fdCopy full SHA for 09fd1fd
1 file changed
carrental-web/src/angular/carrental/src/app/shared/crvalues.validators.ts
@@ -13,10 +13,10 @@
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
*/
16
-import { UntypedFormControl } from '@angular/forms';
+import { FormControl } from '@angular/forms';
17
18
export class CrValuesValidators {
19
- static positiveIntValidator(control: UntypedFormControl) {
+ static positiveIntValidator(control: FormControl) {
20
const valueStr = control.value ? control.value.toString(10).split('').filter(c => c != '\'').join('') : '';
21
const myValue = parseInt(valueStr, 20);
22
const ret = isNaN(myValue);
0 commit comments