File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/angular_devkit/core/src/json/schema Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ interface AjvRefMap {
43
43
schema : JsonObject ;
44
44
}
45
45
46
- export type UriHandler = ( uri : string ) => Observable < JsonObject > | null | undefined ;
46
+ export type UriHandler = ( uri : string ) =>
47
+ Observable < JsonObject > | Promise < JsonObject > | null | undefined ;
47
48
48
49
export class SchemaValidationException extends BaseException {
49
50
public readonly errors : SchemaValidatorError [ ] ;
@@ -133,7 +134,7 @@ export class CoreSchemaRegistry implements SchemaRegistry {
133
134
const handler = maybeHandler ( uri ) ;
134
135
if ( handler ) {
135
136
// The AJV API only understands Promises.
136
- return handler . pipe (
137
+ return from ( handler ) . pipe (
137
138
tap ( json => this . _uriCache . set ( uri , json ) ) ,
138
139
) . toPromise ( ) ;
139
140
}
You can’t perform that action at this time.
0 commit comments