source: trip-planner-front/node_modules/@angular-devkit/schematics/tools/fallback-engine-host.d.ts@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[6a3a178]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 */
8/// <reference types="node" />
9import { Observable } from 'rxjs';
10import { Url } from 'url';
11import { CollectionDescription, EngineHost, RuleFactory, SchematicDescription, Source, TaskExecutor, TypedSchematicContext } from '../src';
12export declare type FallbackCollectionDescription = {
13 host: EngineHost<{}, {}>;
14 description: CollectionDescription<{}>;
15};
16export declare type FallbackSchematicDescription = {
17 description: SchematicDescription<{}, {}>;
18};
19export declare type FallbackContext = TypedSchematicContext<FallbackCollectionDescription, FallbackSchematicDescription>;
20/**
21 * An EngineHost that support multiple hosts in a fallback configuration. If a host does not
22 * have a collection/schematics, use the following host before giving up.
23 */
24export declare class FallbackEngineHost implements EngineHost<{}, {}> {
25 private _hosts;
26 addHost<CollectionT extends object, SchematicT extends object>(host: EngineHost<CollectionT, SchematicT>): void;
27 createCollectionDescription(name: string, requester?: CollectionDescription<{}>): CollectionDescription<FallbackCollectionDescription>;
28 createSchematicDescription(name: string, collection: CollectionDescription<FallbackCollectionDescription>): SchematicDescription<FallbackCollectionDescription, FallbackSchematicDescription> | null;
29 getSchematicRuleFactory<OptionT extends object>(schematic: SchematicDescription<FallbackCollectionDescription, FallbackSchematicDescription>, collection: CollectionDescription<FallbackCollectionDescription>): RuleFactory<OptionT>;
30 createSourceFromUrl(url: Url, context: FallbackContext): Source | null;
31 transformOptions<OptionT extends object, ResultT extends object>(schematic: SchematicDescription<FallbackCollectionDescription, FallbackSchematicDescription>, options: OptionT, context?: FallbackContext): Observable<ResultT>;
32 transformContext(context: FallbackContext): FallbackContext;
33 listSchematicNames(collection: CollectionDescription<FallbackCollectionDescription>): string[];
34 createTaskExecutor(name: string): Observable<TaskExecutor>;
35 hasTaskExecutor(name: string): boolean;
36}
Note: See TracBrowser for help on using the repository browser.