From caeaa53e1ab2c1978484ab59d08f5ccf92f65f21 Mon Sep 17 00:00:00 2001 From: Ben Lesh Date: Wed, 12 Jun 2019 14:58:24 -0700 Subject: [PATCH] refactor: Add explict type to allow RxJS to be updated While trying to sync RxJS into google3 an issue came up around the code in question, where TypeScript is unable to properly infer the type. Adding this explicit type resolves the issue. --- .../core/src/experimental/workspace/workspace.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/angular_devkit/core/src/experimental/workspace/workspace.ts b/packages/angular_devkit/core/src/experimental/workspace/workspace.ts index f198505441..805938706e 100644 --- a/packages/angular_devkit/core/src/experimental/workspace/workspace.ts +++ b/packages/angular_devkit/core/src/experimental/workspace/workspace.ts @@ -17,6 +17,7 @@ import { parseJson, schema, } from '../../json'; +import { SchemaValidatorResult } from '../../json/schema/interface'; import { Path, basename, @@ -342,7 +343,7 @@ export class Workspace { return this._registry.compile(schemaJson).pipe( concatMap(validator => validator(contentJsonCopy)), - concatMap(validatorResult => { + concatMap((validatorResult: SchemaValidatorResult) => { if (validatorResult.success) { return of(contentJsonCopy as T); } else {