platform-browser-dynamic.d.ts 3.7 KB

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