UNPKG

755 BTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { schema } from '@angular-devkit/core';
9import { Observable } from 'rxjs';
10import { FileSystemSchematicContext, FileSystemSchematicDescription } from './description';
11export declare class InvalidInputOptions<T = {}> extends schema.SchemaValidationException {
12 constructor(options: T, errors: schema.SchemaValidatorError[]);
13}
14export declare function validateOptionsWithSchema(registry: schema.SchemaRegistry): <T extends {} | null>(schematic: FileSystemSchematicDescription, options: T, context?: FileSystemSchematicContext) => Observable<T>;