我试图以angular formbuilder(反应形式)实现接口,但是当我创建带有所有验证器的接口时,这种情况会出错
仅引用类型,但在此处被用作命名空间。
export Interface user {
firstName: [
'',
[
Validators.required,
Validators.maxLength(50),
ValidationService.alphanumericValidator,
],
],
lastName: [
'',
[
Validators.required,
Validators.maxLength(50),
ValidationService.alphanumericValidator,
],
}