UNPKG

3.92 kBTypeScriptView Raw
1/**
2 * @license Angular v12.2.4
3 * (c) 2010-2021 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 const ɵCOMPILER_PROVIDERS__POST_R3__: StaticProvider[];
70
71export declare class ɵCompilerImpl implements Compiler {
72 private _metadataResolver;
73 private _delegate;
74 readonly injector: Injector;
75 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);
76 private getExtraNgModuleProviders;
77 compileModuleSync<T>(moduleType: Type<T>): NgModuleFactory<T>;
78 compileModuleAsync<T>(moduleType: Type<T>): Promise<NgModuleFactory<T>>;
79 compileModuleAndAllComponentsSync<T>(moduleType: Type<T>): ModuleWithComponentFactories<T>;
80 compileModuleAndAllComponentsAsync<T>(moduleType: Type<T>): Promise<ModuleWithComponentFactories<T>>;
81 loadAotSummaries(summaries: () => any[]): void;
82 hasAotSummary(ref: Type<any>): boolean;
83 getComponentFactory<T>(component: Type<T>): ComponentFactory<T>;
84 clearCache(): void;
85 clearCacheFor(type: Type<any>): void;
86 getModuleId(moduleType: Type<any>): string | undefined;
87}
88
89/**
90 * @publicApi
91 */
92export declare const ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: StaticProvider[];
93
94/**
95 * A platform that included corePlatform and the compiler.
96 *
97 * @publicApi
98 */
99export declare const ɵplatformCoreDynamic: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
100
101export declare class ɵResourceLoaderImpl extends ResourceLoader {
102 get(url: string): Promise<string>;
103}
104
105export { }