Skip to content

Commit 39b4cc0

Browse files
hanslalexeagle
authored andcommitted
build: fix RxJS invalid typings
1 parent 7e63dd7 commit 39b4cc0

File tree

1 file changed

+3
-3
lines changed
  • packages/angular_devkit/core/src/json/schema

1 file changed

+3
-3
lines changed

packages/angular_devkit/core/src/json/schema/registry.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export class CoreSchemaRegistry implements SchemaRegistry {
258258
return Promise.reject(err);
259259
}));
260260
}),
261-
switchMap(([data, valid]) => {
261+
switchMap(([data, valid]: [JsonValue, boolean]) => {
262262
if (!validationOptions.withPrompts) {
263263
return observableOf([data, valid]);
264264
}
@@ -274,7 +274,7 @@ export class CoreSchemaRegistry implements SchemaRegistry {
274274
return observableOf([data, valid]);
275275
}
276276
}),
277-
switchMap(([data, valid]) => {
277+
switchMap(([data, valid]: [JsonValue, boolean]) => {
278278
if (valid) {
279279
return observableOf(data).pipe(
280280
...[...this._post].map(visitor => concatMap((data: JsonValue) => {
@@ -287,7 +287,7 @@ export class CoreSchemaRegistry implements SchemaRegistry {
287287
return observableOf([data, valid]);
288288
}
289289
}),
290-
map(([data, valid]) => {
290+
map(([data, valid]: [JsonValue, boolean]) => {
291291
if (valid) {
292292
return { data, success: true } as SchemaValidatorResult;
293293
}

0 commit comments

Comments
 (0)