UNPKG

890 BTypeScriptView 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 { BaseException } from '@angular-devkit/core';
9import { Observable } from 'rxjs';
10import { Rule, SchematicContext, Source } from '../engine/interface';
11import { Tree } from '../tree/interface';
12/**
13 * When a rule or source returns an invalid value.
14 */
15export declare class InvalidRuleResultException extends BaseException {
16 constructor(value?: {});
17}
18export declare class InvalidSourceResultException extends BaseException {
19 constructor(value?: {});
20}
21export declare function callSource(source: Source, context: SchematicContext): Observable<Tree>;
22export declare function callRule(rule: Rule, input: Tree | Observable<Tree>, context: SchematicContext): Observable<Tree>;