UNPKG

3.84 kBTypeScriptView Raw
1/**
2 * @license Angular v8.2.11
3 * (c) 2010-2019 Google LLC. https://angular.io/
4 * License: MIT
5 */
6
7import { CompileMetadataResolver } from '@angular/compiler';
8import { Compiler } from '@angular/core';
9import { CompilerConfig } from '@angular/compiler';
10import { CompileReflector } from '@angular/compiler';
11import { CompilerFactory } from '@angular/core';
12import { CompilerOptions } from '@angular/core';
13import { ComponentFactory } from '@angular/core';
14import { Injector } from '@angular/core';
15import { JitEvaluator } from '@angular/compiler';
16import { ModuleWithComponentFactories } from '@angular/core';
17import { NgModuleCompiler } from '@angular/compiler';
18import { NgModuleFactory } from '@angular/core';
19import { PlatformRef } from '@angular/core';
20import { Provider } from '@angular/core';
21import { ResourceLoader } from '@angular/compiler';
22import { StaticProvider } from '@angular/core';
23import { StyleCompiler } from '@angular/compiler';
24import { SummaryResolver } from '@angular/compiler';
25import { TemplateParser } from '@angular/compiler';
26import { Type } from '@angular/core';
27import { Version } from '@angular/core';
28import { ViewCompiler } from '@angular/compiler';
29import { ɵConsole } from '@angular/core';
30
31/**
32 * @publicApi
33 */
34export declare class JitCompilerFactory implements CompilerFactory {
35 private _defaultOptions;
36 createCompiler(options?: CompilerOptions[]): Compiler;
37}
38
39/**
40 * @publicApi
41 */
42export declare const platformBrowserDynamic: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
43
44/**
45 * @publicApi
46 */
47export declare const RESOURCE_CACHE_PROVIDER: Provider[];
48
49/**
50 * @publicApi
51 */
52export declare const VERSION: Version;
53
54/**
55 * An implementation of ResourceLoader that uses a template cache to avoid doing an actual
56 * ResourceLoader.
57 *
58 * The template cache needs to be built and loaded into window.$templateCache
59 * via a separate mechanism.
60 *
61 * @publicApi
62 */
63export declare class ɵangular_packages_platform_browser_dynamic_platform_browser_dynamic_a extends ResourceLoader {
64 private _cache;
65 constructor();
66 get(url: string): Promise<string>;
67}
68
69export declare class ɵCompilerImpl implements Compiler {
70 private _metadataResolver;
71 private _delegate;
72 readonly injector: Injector;
73 constructor(injector: Injector, _metadataResolver: CompileMetadataResolver, templateParser: TemplateParser, styleCompiler: StyleCompiler, viewCompiler: ViewCompiler, ngModuleCompiler: NgModuleCompiler, summaryResolver: SummaryResolver<Type<any>>, compileReflector: CompileReflector, jitEvaluator: JitEvaluator, compilerConfig: CompilerConfig, console: ɵConsole);
74 private getExtraNgModuleProviders;
75 compileModuleSync<T>(moduleType: Type<T>): NgModuleFactory<T>;
76 compileModuleAsync<T>(moduleType: Type<T>): Promise<NgModuleFactory<T>>;
77 compileModuleAndAllComponentsSync<T>(moduleType: Type<T>): ModuleWithComponentFactories<T>;
78 compileModuleAndAllComponentsAsync<T>(moduleType: Type<T>): Promise<ModuleWithComponentFactories<T>>;
79 loadAotSummaries(summaries: () => any[]): void;
80 hasAotSummary(ref: Type<any>): boolean;
81 getComponentFactory<T>(component: Type<T>): ComponentFactory<T>;
82 clearCache(): void;
83 clearCacheFor(type: Type<any>): void;
84 getModuleId(moduleType: Type<any>): string | undefined;
85}
86
87/**
88 * @publicApi
89 */
90export declare const ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: StaticProvider[];
91
92/**
93 * A platform that included corePlatform and the compiler.
94 *
95 * @publicApi
96 */
97export declare const ɵplatformCoreDynamic: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
98
99export declare class ɵResourceLoaderImpl extends ResourceLoader {
100 get(url: string): Promise<string>;
101}
102
103export { }