File tree Expand file tree Collapse file tree
packages/angular_devkit/core/src/json/schema Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments