Skip to content

Commit 21247c0

Browse files
fix(docs): remove invalid import (#102)
1 parent 31acff1 commit 21247c0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ export class Post {
294294
If you want to set a validator on a class or a property, you can do it by specifying `validators` option to `@Form`, `@FormControl`,`@FormGroup` or `@FormArray` decorators
295295

296296
```typescript
297-
import { FormControl, Validator } from 'rx-form-mapper';
297+
import { FormControl } from 'rx-form-mapper';
298298

299299
export class User {
300300

@@ -312,7 +312,7 @@ export class User {
312312
If you want to set an AsyncValidator on a class or a property, you can do it by specifying `asyncValidators` option to `@Form`, `@FormControl`,`@FormGroup` or `@FormArray` decorators
313313

314314
```typescript
315-
import { FormControl, Validator } from 'rx-form-mapper';
315+
import { FormControl } from 'rx-form-mapper';
316316

317317
const asyncValidator = (control: AbstractControl) => return of(undefined);
318318

@@ -353,7 +353,7 @@ export class UniqueNameValidator implements AsyncValidator {
353353
And pass it's type as validator or asyncValidator option
354354

355355
```typescript
356-
import { FormControl, AsyncValidator } from 'rx-form-mapper';
356+
import { FormControl } from 'rx-form-mapper';
357357
import { UniqueNameValidator } from 'src/app/validators/unique-Name.validator';
358358

359359
export class User {
@@ -371,8 +371,7 @@ export class User {
371371
Sometimes you want to change the default strategy of form validation, you can do it specifying `updateOn` option to `@Form`, `@FormControl`,`@FormGroup` or `@FormArray` decorators
372372

373373
```typescript
374-
import { FormControl, AsyncValidator } from 'rx-form-mapper';
375-
import { UniqueNameValidator } from 'src/app/validators/unique-Name.validator';
374+
import { FormControl } from 'rx-form-mapper';
376375

377376
export class User {
378377

0 commit comments

Comments
 (0)