UNPKG

1.35 kBTypeScriptView 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.dev/license
7 */
8import { BaseException } from '@angular-devkit/core';
9import { Observable } from 'rxjs';
10import { Tree } from '../tree/interface';
11import { Collection, Engine, ExecutionOptions, RuleFactory, Schematic, SchematicDescription, TypedSchematicContext } from './interface';
12export declare class InvalidSchematicsNameException extends BaseException {
13 constructor(name: string);
14}
15export declare class SchematicImpl<CollectionT extends object, SchematicT extends object> implements Schematic<CollectionT, SchematicT> {
16 private _description;
17 private _factory;
18 private _collection;
19 private _engine;
20 constructor(_description: SchematicDescription<CollectionT, SchematicT>, _factory: RuleFactory<{}>, _collection: Collection<CollectionT, SchematicT>, _engine: Engine<CollectionT, SchematicT>);
21 get description(): SchematicDescription<CollectionT, SchematicT>;
22 get collection(): Collection<CollectionT, SchematicT>;
23 call<OptionT extends object>(options: OptionT, host: Observable<Tree>, parentContext?: Partial<TypedSchematicContext<CollectionT, SchematicT>>, executionOptions?: Partial<ExecutionOptions>): Observable<Tree>;
24}