From 198fc6f108015ada9911dce0ea59e5a5f1a10900 Mon Sep 17 00:00:00 2001 From: Jan-Niklas W <6104311+niklas-wortmann@users.noreply.github.com> Date: Wed, 29 Apr 2020 14:12:19 +0200 Subject: [PATCH] docs(forms): remove rxjs of alias import in form async validator example (#36856) In the code example of the AsyncValidator example there was an aliased import for the rxjs operator `of`. To align with the RxJS docs it should just use a plain import of `of` PR Close #36856 --- packages/forms/src/directives/validators.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/forms/src/directives/validators.ts b/packages/forms/src/directives/validators.ts index 27d5c1a727..ef08b8c9a0 100644 --- a/packages/forms/src/directives/validators.ts +++ b/packages/forms/src/directives/validators.ts @@ -81,7 +81,7 @@ export interface Validator { * async validator directive with a custom error key. * * ```typescript - * import { of as observableOf } from 'rxjs'; + * import { of } from 'rxjs'; * * @Directive({ * selector: '[customAsyncValidator]', @@ -90,7 +90,7 @@ export interface Validator { * }) * class CustomAsyncValidatorDirective implements AsyncValidator { * validate(control: AbstractControl): Observable { - * return observableOf({'custom': true}); + * return of({'custom': true}); * } * } * ```