Project

General

Profile

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 { CompileReflector, PipeResolver } from '@angular/compiler';
9
import { Injector, Pipe, Type } from '@angular/core';
10
export declare class MockPipeResolver extends PipeResolver {
11
    private _injector;
12
    private _pipes;
13
    constructor(_injector: Injector, refector: CompileReflector);
14
    private readonly _compiler;
15
    private _clearCacheFor(pipe);
16
    /**
17
     * Overrides the {@link Pipe} for a pipe.
18
     */
19
    setPipe(type: Type<any>, metadata: Pipe): void;
20
    /**
21
     * Returns the {@link Pipe} for a pipe:
22
     * - Set the {@link Pipe} to the overridden view when it exists or fallback to the
23
     * default
24
     * `PipeResolver`, see `setPipe`.
25
     */
26
    resolve(type: Type<any>, throwIfNotFound?: boolean): Pipe;
27
}
(7-7/12)