1
|
/**
|
2
|
* @license
|
3
|
* Copyright Google Inc. 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
|
import { Pipe, Type } from '@angular/core';
|
9
|
import { CompileReflector } from './compile_reflector';
|
10
|
/**
|
11
|
* Resolve a `Type` for {@link Pipe}.
|
12
|
*
|
13
|
* This interface can be overridden by the application developer to create custom behavior.
|
14
|
*
|
15
|
* See {@link Compiler}
|
16
|
*/
|
17
|
export declare class PipeResolver {
|
18
|
private _reflector;
|
19
|
constructor(_reflector: CompileReflector);
|
20
|
isPipe(type: Type<any>): boolean;
|
21
|
/**
|
22
|
* Return {@link Pipe} for a given `Type`.
|
23
|
*/
|
24
|
resolve(type: Type<any>, throwIfNotFound?: boolean): Pipe | null;
|
25
|
}
|