Skip to content

Commit caeaa53

Browse files
benleshKeen Yee Liau
authored and
Keen Yee Liau
committed
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.
1 parent 4ad0fb7 commit caeaa53

File tree

1 file changed

+2
-1
lines changed
  • packages/angular_devkit/core/src/experimental/workspace

1 file changed

+2
-1
lines changed

packages/angular_devkit/core/src/experimental/workspace/workspace.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
parseJson,
1818
schema,
1919
} from '../../json';
20+
import { SchemaValidatorResult } from '../../json/schema/interface';
2021
import {
2122
Path,
2223
basename,
@@ -342,7 +343,7 @@ export class Workspace {
342343

343344
return this._registry.compile(schemaJson).pipe(
344345
concatMap(validator => validator(contentJsonCopy)),
345-
concatMap(validatorResult => {
346+
concatMap((validatorResult: SchemaValidatorResult) => {
346347
if (validatorResult.success) {
347348
return of(contentJsonCopy as T);
348349
} else {

0 commit comments

Comments
 (0)