UNPKG

734 BTypeScriptView Raw
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 */
8import { CompileReflector } from './compile_reflector';
9import { Pipe, Type } from './core';
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 */
17export declare class PipeResolver {
18 private _reflector;
19 constructor(_reflector: CompileReflector);
20 isPipe(type: Type): boolean;
21 /**
22 * Return {@link Pipe} for a given `Type`.
23 */
24 resolve(type: Type, throwIfNotFound?: boolean): Pipe | null;
25}