UNPKG

1.6 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.io/license
7 */
8import { strings } from '@angular-devkit/core';
9import * as formats from './formats/index';
10import { FilePredicate, MergeStrategy, Tree as TreeInterface } from './tree/interface';
11import * as workflow from './workflow/index';
12export { SchematicsException } from './exception/exception';
13export * from './tree/action';
14export * from './engine/index';
15export * from './exception/exception';
16export * from './tree/interface';
17export * from './rules/base';
18export * from './rules/call';
19export * from './rules/move';
20export * from './rules/random';
21export * from './rules/schematic';
22export * from './rules/template';
23export * from './rules/url';
24export * from './tree/delegate';
25export * from './tree/empty';
26export * from './tree/host-tree';
27export { UpdateRecorder } from './tree/interface';
28export * from './engine/schematic';
29export * from './sink/dryrun';
30export * from './sink/host';
31export * from './sink/sink';
32export { formats, strings, workflow };
33export interface TreeConstructor {
34 empty(): TreeInterface;
35 branch(tree: TreeInterface): TreeInterface;
36 merge(tree: TreeInterface, other: TreeInterface, strategy?: MergeStrategy): TreeInterface;
37 partition(tree: TreeInterface, predicate: FilePredicate<boolean>): [TreeInterface, TreeInterface];
38 optimize(tree: TreeInterface): TreeInterface;
39}
40export declare type Tree = TreeInterface;
41export declare const Tree: TreeConstructor;