schema-option-transform.d.ts 756 B

1234567891011121314
  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.dev/license
  7. */
  8. import { schema } from '@angular-devkit/core';
  9. import { Observable } from 'rxjs';
  10. import { FileSystemSchematicContext, FileSystemSchematicDescription } from './description';
  11. export declare class InvalidInputOptions<T = {}> extends schema.SchemaValidationException {
  12. constructor(options: T, errors: schema.SchemaValidatorError[]);
  13. }
  14. export declare function validateOptionsWithSchema(registry: schema.SchemaRegistry): <T extends {} | null>(schematic: FileSystemSchematicDescription, options: T, context?: FileSystemSchematicContext) => Observable<T>;