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