UNPKG

1.09 kBTypeScriptView 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 { Compiler, CompilerOptions, Component, Directive, Injector, NgModule, Pipe, Type } from '@angular/core';
9import { MetadataOverride } from './metadata_override';
10/**
11 * Special interface to the compiler only used by testing
12 *
13 * @experimental
14 */
15export declare class TestingCompiler extends Compiler {
16 injector: Injector;
17 overrideModule(module: Type<any>, overrides: MetadataOverride<NgModule>): void;
18 overrideDirective(directive: Type<any>, overrides: MetadataOverride<Directive>): void;
19 overrideComponent(component: Type<any>, overrides: MetadataOverride<Component>): void;
20 overridePipe(directive: Type<any>, overrides: MetadataOverride<Pipe>): void;
21}
22/**
23 * A factory for creating a Compiler
24 *
25 * @experimental
26 */
27export declare abstract class TestingCompilerFactory {
28 abstract createTestingCompiler(options?: CompilerOptions[]): TestingCompiler;
29}