diff --git a/packages/angular/cli/BUILD b/packages/angular/cli/BUILD index 471f0d42475a..a4d7f4ba6fdd 100644 --- a/packages/angular/cli/BUILD +++ b/packages/angular/cli/BUILD @@ -28,6 +28,8 @@ ts_library( "//packages/angular_devkit/schematics:tools", "@rxjs", "@rxjs//operators", + # @typings: es2017.object + # @typings: inquirer # @typings: node # @typings: semver ], diff --git a/packages/angular_devkit/core/src/json/schema/registry.ts b/packages/angular_devkit/core/src/json/schema/registry.ts index 33510bcdaa61..06321af8aec4 100644 --- a/packages/angular_devkit/core/src/json/schema/registry.ts +++ b/packages/angular_devkit/core/src/json/schema/registry.ts @@ -342,7 +342,8 @@ export class CoreSchemaRegistry implements SchemaRegistry { let result = of(data); if (validationOptions.applyPreTransforms) { - result = result.pipe( + // tslint:disable-next-line:no-any https://github.com/ReactiveX/rxjs/issues/3989 + result = (result as any).pipe( ...[...this._pre].map(visitor => concatMap((data: JsonValue) => { return visitJson(data, visitor, schema, this._resolver, validate); })), @@ -392,7 +393,8 @@ export class CoreSchemaRegistry implements SchemaRegistry { let result = of(data); if (validationOptions.applyPostTransforms) { - result = result.pipe( + // tslint:disable-next-line:no-any https://github.com/ReactiveX/rxjs/issues/3989 + result = (result as any).pipe( ...[...this._post].map(visitor => concatMap((data: JsonValue) => { return visitJson(data, visitor, schema, this._resolver, validate); })), @@ -686,7 +688,8 @@ export class CoreSchemaRegistry implements SchemaRegistry { data: T, smartDefaults: Map, ): Observable { - return of(data).pipe( + // tslint:disable-next-line:no-any https://github.com/ReactiveX/rxjs/issues/3989 + return (of(data) as any).pipe( ...[...smartDefaults.entries()].map(([pointer, schema]) => { return concatMap(data => { const fragments = JSON.parse(pointer); diff --git a/packages/angular_devkit/schematics/tools/fallback-engine-host.ts b/packages/angular_devkit/schematics/tools/fallback-engine-host.ts index 7dd9849bef24..3e9f882452b5 100644 --- a/packages/angular_devkit/schematics/tools/fallback-engine-host.ts +++ b/packages/angular_devkit/schematics/tools/fallback-engine-host.ts @@ -91,7 +91,8 @@ export class FallbackEngineHost implements EngineHost<{}, {}> { options: OptionT, context?: FallbackContext, ): Observable { - return (observableOf(options) + // tslint:disable-next-line:no-any https://github.com/ReactiveX/rxjs/issues/3989 + return ((observableOf(options) as any) .pipe(...this._hosts .map(host => mergeMap(opt => host.transformOptions(schematic, opt, context))), ) diff --git a/packages/angular_devkit/schematics/tools/file-system-engine-host-base.ts b/packages/angular_devkit/schematics/tools/file-system-engine-host-base.ts index 0ed3cc7dac98..aae6da2f8dec 100644 --- a/packages/angular_devkit/schematics/tools/file-system-engine-host-base.ts +++ b/packages/angular_devkit/schematics/tools/file-system-engine-host-base.ts @@ -287,7 +287,8 @@ export abstract class FileSystemEngineHostBase implements options: OptionT, context?: FileSystemSchematicContext, ): Observable { - return (observableOf(options) + // tslint:disable-next-line:no-any https://github.com/ReactiveX/rxjs/issues/3989 + return ((observableOf(options) as any) .pipe( ...this._transforms.map(tFn => mergeMap(opt => { const newOptions = tFn(schematic, opt, context);