source: trip-planner-front/node_modules/@angular-devkit/schematics/tools/description.d.ts@ 8d391a1

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

initial commit

  • Property mode set to 100644
File size: 2.0 KB
Line 
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 { JsonObject } from '@angular-devkit/core';
9import { Collection, CollectionDescription, Engine, EngineHost, RuleFactory, Schematic, SchematicDescription, TypedSchematicContext } from '../src';
10export interface FileSystemCollectionDescription {
11 readonly name: string;
12 readonly path: string;
13 readonly version?: string;
14 readonly schematics: {
15 [name: string]: FileSystemSchematicDesc;
16 };
17}
18export interface FileSystemSchematicJsonDescription {
19 readonly aliases?: string[];
20 readonly factory: string;
21 readonly name: string;
22 readonly collection: FileSystemCollectionDescription;
23 readonly description: string;
24 readonly schema?: string;
25 readonly extends?: string;
26}
27export interface FileSystemSchematicDescription extends FileSystemSchematicJsonDescription {
28 readonly path: string;
29 readonly schemaJson?: JsonObject;
30 readonly factoryFn: RuleFactory<{}>;
31}
32/**
33 * Used to simplify typings.
34 */
35export declare type FileSystemEngine = Engine<FileSystemCollectionDescription, FileSystemSchematicDescription>;
36export declare type FileSystemEngineHost = EngineHost<FileSystemCollectionDescription, FileSystemSchematicDescription>;
37export declare type FileSystemCollection = Collection<FileSystemCollectionDescription, FileSystemSchematicDescription>;
38export declare type FileSystemSchematic = Schematic<FileSystemCollectionDescription, FileSystemSchematicDescription>;
39export declare type FileSystemCollectionDesc = CollectionDescription<FileSystemCollectionDescription>;
40export declare type FileSystemSchematicDesc = SchematicDescription<FileSystemCollectionDescription, FileSystemSchematicDescription>;
41export declare type FileSystemSchematicContext = TypedSchematicContext<FileSystemCollectionDescription, FileSystemSchematicDescription>;
Note: See TracBrowser for help on using the repository browser.