-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcall.d.ts
22 lines (22 loc) · 891 Bytes
/
call.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { BaseException } from '@angular-devkit/core';
import { Observable } from 'rxjs';
import { Rule, SchematicContext, Source } from '../engine/interface';
import { Tree } from '../tree/interface';
/**
* When a rule or source returns an invalid value.
*/
export declare class InvalidRuleResultException extends BaseException {
constructor(value?: {});
}
export declare class InvalidSourceResultException extends BaseException {
constructor(value?: {});
}
export declare function callSource(source: Source, context: SchematicContext): Observable<Tree>;
export declare function callRule(rule: Rule, input: Tree | Observable<Tree>, context: SchematicContext): Observable<Tree>;