fix(core): Share private types through an exported interface. (#11009)
Instead of using declare namespace to share the types. This allows the generated code to be compiled with closure with full optimizations.
This commit is contained in:
@ -6,91 +6,94 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {__core_private__ as r, __core_private_types__ as t} from '@angular/core';
|
||||
import {__core_private_DebugAppView__, __core_private_TemplateRef__, __core_private__ as r, __core_private_types__ as types} from '@angular/core';
|
||||
|
||||
export var isDefaultChangeDetectionStrategy: typeof t.isDefaultChangeDetectionStrategy =
|
||||
export declare let _compiler_core_private_types: types;
|
||||
|
||||
export var isDefaultChangeDetectionStrategy: typeof r.isDefaultChangeDetectionStrategy =
|
||||
r.isDefaultChangeDetectionStrategy;
|
||||
export type ChangeDetectorStatus = t.ChangeDetectorStatus;
|
||||
export var ChangeDetectorStatus: typeof t.ChangeDetectorStatus = r.ChangeDetectorStatus;
|
||||
export var CHANGE_DETECTION_STRATEGY_VALUES: typeof t.CHANGE_DETECTION_STRATEGY_VALUES =
|
||||
export type ChangeDetectorStatus = typeof _compiler_core_private_types.ChangeDetectorStatus;
|
||||
export var ChangeDetectorStatus: typeof r.ChangeDetectorStatus = r.ChangeDetectorStatus;
|
||||
export var CHANGE_DETECTION_STRATEGY_VALUES: typeof r.CHANGE_DETECTION_STRATEGY_VALUES =
|
||||
r.CHANGE_DETECTION_STRATEGY_VALUES;
|
||||
export var constructDependencies: typeof t.constructDependencies = r.constructDependencies;
|
||||
export type LifecycleHooks = t.LifecycleHooks;
|
||||
export var LifecycleHooks: typeof t.LifecycleHooks = r.LifecycleHooks;
|
||||
export var LIFECYCLE_HOOKS_VALUES: typeof t.LIFECYCLE_HOOKS_VALUES = r.LIFECYCLE_HOOKS_VALUES;
|
||||
export type ReflectorReader = t.ReflectorReader;
|
||||
export var ReflectorReader: typeof t.ReflectorReader = r.ReflectorReader;
|
||||
export type AppElement = t.AppElement;
|
||||
export var AppElement: typeof t.AppElement = r.AppElement;
|
||||
export var CodegenComponentFactoryResolver: typeof t.CodegenComponentFactoryResolver =
|
||||
export var constructDependencies: typeof r.constructDependencies = r.constructDependencies;
|
||||
export type LifecycleHooks = typeof _compiler_core_private_types.LifecycleHooks;
|
||||
export var LifecycleHooks: typeof r.LifecycleHooks = r.LifecycleHooks;
|
||||
export var LIFECYCLE_HOOKS_VALUES: typeof r.LIFECYCLE_HOOKS_VALUES = r.LIFECYCLE_HOOKS_VALUES;
|
||||
export type ReflectorReader = typeof _compiler_core_private_types.ReflectorReader;
|
||||
export var ReflectorReader: typeof r.ReflectorReader = r.ReflectorReader;
|
||||
export type AppElement = typeof _compiler_core_private_types.AppElement;
|
||||
export var AppElement: typeof r.AppElement = r.AppElement;
|
||||
export var CodegenComponentFactoryResolver: typeof r.CodegenComponentFactoryResolver =
|
||||
r.CodegenComponentFactoryResolver;
|
||||
export var AppView: typeof t.AppView = r.AppView;
|
||||
export type DebugAppView<T> = t.DebugAppView<T>;
|
||||
export var DebugAppView: typeof t.DebugAppView = r.DebugAppView;
|
||||
export var NgModuleInjector: typeof t.NgModuleInjector = r.NgModuleInjector;
|
||||
export type ViewType = t.ViewType;
|
||||
export var ViewType: typeof t.ViewType = r.ViewType;
|
||||
export var MAX_INTERPOLATION_VALUES: typeof t.MAX_INTERPOLATION_VALUES = r.MAX_INTERPOLATION_VALUES;
|
||||
export var checkBinding: typeof t.checkBinding = r.checkBinding;
|
||||
export var flattenNestedViewRenderNodes: typeof t.flattenNestedViewRenderNodes =
|
||||
export var AppView: typeof r.AppView = r.AppView;
|
||||
export type DebugAppView<T> = __core_private_DebugAppView__<T>;
|
||||
export var DebugAppView: typeof r.DebugAppView = r.DebugAppView;
|
||||
export var NgModuleInjector: typeof r.NgModuleInjector = r.NgModuleInjector;
|
||||
export type ViewType = typeof _compiler_core_private_types.ViewType;
|
||||
export var ViewType: typeof r.ViewType = r.ViewType;
|
||||
export var MAX_INTERPOLATION_VALUES: typeof r.MAX_INTERPOLATION_VALUES = r.MAX_INTERPOLATION_VALUES;
|
||||
export var checkBinding: typeof r.checkBinding = r.checkBinding;
|
||||
export var flattenNestedViewRenderNodes: typeof r.flattenNestedViewRenderNodes =
|
||||
r.flattenNestedViewRenderNodes;
|
||||
export var interpolate: typeof t.interpolate = r.interpolate;
|
||||
export var ViewUtils: typeof t.ViewUtils = r.ViewUtils;
|
||||
export var VIEW_ENCAPSULATION_VALUES: typeof t.VIEW_ENCAPSULATION_VALUES =
|
||||
export var interpolate: typeof r.interpolate = r.interpolate;
|
||||
export var ViewUtils: typeof r.ViewUtils = r.ViewUtils;
|
||||
export var VIEW_ENCAPSULATION_VALUES: typeof r.VIEW_ENCAPSULATION_VALUES =
|
||||
r.VIEW_ENCAPSULATION_VALUES;
|
||||
export var DebugContext: typeof t.DebugContext = r.DebugContext;
|
||||
export var StaticNodeDebugInfo: typeof t.StaticNodeDebugInfo = r.StaticNodeDebugInfo;
|
||||
export var devModeEqual: typeof t.devModeEqual = r.devModeEqual;
|
||||
export var UNINITIALIZED: typeof t.UNINITIALIZED = r.UNINITIALIZED;
|
||||
export var ValueUnwrapper: typeof t.ValueUnwrapper = r.ValueUnwrapper;
|
||||
export var TemplateRef_: typeof t.TemplateRef_ = r.TemplateRef_;
|
||||
export type RenderDebugInfo = t.RenderDebugInfo;
|
||||
export var RenderDebugInfo: typeof t.RenderDebugInfo = r.RenderDebugInfo;
|
||||
export var EMPTY_ARRAY: typeof t.EMPTY_ARRAY = r.EMPTY_ARRAY;
|
||||
export var EMPTY_MAP: typeof t.EMPTY_MAP = r.EMPTY_MAP;
|
||||
export var pureProxy1: typeof t.pureProxy1 = r.pureProxy1;
|
||||
export var pureProxy2: typeof t.pureProxy2 = r.pureProxy2;
|
||||
export var pureProxy3: typeof t.pureProxy3 = r.pureProxy3;
|
||||
export var pureProxy4: typeof t.pureProxy4 = r.pureProxy4;
|
||||
export var pureProxy5: typeof t.pureProxy5 = r.pureProxy5;
|
||||
export var pureProxy6: typeof t.pureProxy6 = r.pureProxy6;
|
||||
export var pureProxy7: typeof t.pureProxy7 = r.pureProxy7;
|
||||
export var pureProxy8: typeof t.pureProxy8 = r.pureProxy8;
|
||||
export var pureProxy9: typeof t.pureProxy9 = r.pureProxy9;
|
||||
export var pureProxy10: typeof t.pureProxy10 = r.pureProxy10;
|
||||
export var castByValue: typeof t.castByValue = r.castByValue;
|
||||
export type Console = t.Console;
|
||||
export var Console: typeof t.Console = r.Console;
|
||||
export var reflector: t.Reflector = r.reflector;
|
||||
export var Reflector: typeof t.Reflector = r.Reflector;
|
||||
export type Reflector = t.Reflector;
|
||||
export var ReflectionCapabilities: typeof t.ReflectionCapabilities = r.ReflectionCapabilities;
|
||||
export type ReflectionCapabilities = t.ReflectionCapabilities;
|
||||
export type NoOpAnimationPlayer = t.NoOpAnimationPlayer;
|
||||
export var NoOpAnimationPlayer: typeof t.NoOpAnimationPlayer = r.NoOpAnimationPlayer;
|
||||
export type AnimationPlayer = t.AnimationPlayer;
|
||||
export var AnimationPlayer: typeof t.AnimationPlayer = r.AnimationPlayer;
|
||||
export type AnimationSequencePlayer = t.AnimationSequencePlayer;
|
||||
export var AnimationSequencePlayer: typeof t.AnimationSequencePlayer = r.AnimationSequencePlayer;
|
||||
export type AnimationGroupPlayer = t.AnimationGroupPlayer;
|
||||
export var AnimationGroupPlayer: typeof t.AnimationGroupPlayer = r.AnimationGroupPlayer;
|
||||
export type AnimationKeyframe = t.AnimationKeyframe;
|
||||
export var AnimationKeyframe: typeof t.AnimationKeyframe = r.AnimationKeyframe;
|
||||
export type AnimationStyles = t.AnimationStyles;
|
||||
export var AnimationStyles: typeof t.AnimationStyles = r.AnimationStyles;
|
||||
export type AnimationOutput = t.AnimationOutput;
|
||||
export var AnimationOutput: typeof t.AnimationOutput = r.AnimationOutput;
|
||||
export var DebugContext: typeof r.DebugContext = r.DebugContext;
|
||||
export var StaticNodeDebugInfo: typeof r.StaticNodeDebugInfo = r.StaticNodeDebugInfo;
|
||||
export var devModeEqual: typeof r.devModeEqual = r.devModeEqual;
|
||||
export var UNINITIALIZED: typeof r.UNINITIALIZED = r.UNINITIALIZED;
|
||||
export var ValueUnwrapper: typeof _compiler_core_private_types.ValueUnwrapper = r.ValueUnwrapper;
|
||||
export type TemplateRef_<T> = __core_private_TemplateRef__<T>;
|
||||
export var TemplateRef_: typeof r.TemplateRef_ = r.TemplateRef_;
|
||||
export type RenderDebugInfo = typeof _compiler_core_private_types.RenderDebugInfo;
|
||||
export var RenderDebugInfo: typeof r.RenderDebugInfo = r.RenderDebugInfo;
|
||||
export var EMPTY_ARRAY: typeof r.EMPTY_ARRAY = r.EMPTY_ARRAY;
|
||||
export var EMPTY_MAP: typeof r.EMPTY_MAP = r.EMPTY_MAP;
|
||||
export var pureProxy1: typeof r.pureProxy1 = r.pureProxy1;
|
||||
export var pureProxy2: typeof r.pureProxy2 = r.pureProxy2;
|
||||
export var pureProxy3: typeof r.pureProxy3 = r.pureProxy3;
|
||||
export var pureProxy4: typeof r.pureProxy4 = r.pureProxy4;
|
||||
export var pureProxy5: typeof r.pureProxy5 = r.pureProxy5;
|
||||
export var pureProxy6: typeof r.pureProxy6 = r.pureProxy6;
|
||||
export var pureProxy7: typeof r.pureProxy7 = r.pureProxy7;
|
||||
export var pureProxy8: typeof r.pureProxy8 = r.pureProxy8;
|
||||
export var pureProxy9: typeof r.pureProxy9 = r.pureProxy9;
|
||||
export var pureProxy10: typeof r.pureProxy10 = r.pureProxy10;
|
||||
export var castByValue: typeof r.castByValue = r.castByValue;
|
||||
export type Console = typeof _compiler_core_private_types.Console;
|
||||
export var Console: typeof r.Console = r.Console;
|
||||
export var reflector: typeof _compiler_core_private_types.Reflector = r.reflector;
|
||||
export var Reflector: typeof r.Reflector = r.Reflector;
|
||||
export type Reflector = typeof _compiler_core_private_types.Reflector;
|
||||
export type ReflectionCapabilities = typeof _compiler_core_private_types.ReflectionCapabilities;
|
||||
export var ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
|
||||
export type NoOpAnimationPlayer = typeof _compiler_core_private_types.NoOpAnimationPlayer;
|
||||
export var NoOpAnimationPlayer: typeof r.NoOpAnimationPlayer = r.NoOpAnimationPlayer;
|
||||
export type AnimationPlayer = typeof _compiler_core_private_types.AnimationPlayer;
|
||||
export var AnimationPlayer: typeof r.AnimationPlayer = r.AnimationPlayer;
|
||||
export type AnimationSequencePlayer = typeof _compiler_core_private_types.AnimationSequencePlayer;
|
||||
export var AnimationSequencePlayer: typeof r.AnimationSequencePlayer = r.AnimationSequencePlayer;
|
||||
export type AnimationGroupPlayer = typeof _compiler_core_private_types.AnimationGroupPlayer;
|
||||
export var AnimationGroupPlayer: typeof r.AnimationGroupPlayer = r.AnimationGroupPlayer;
|
||||
export type AnimationKeyframe = typeof _compiler_core_private_types.AnimationKeyframe;
|
||||
export var AnimationKeyframe: typeof r.AnimationKeyframe = r.AnimationKeyframe;
|
||||
export type AnimationStyles = typeof _compiler_core_private_types.AnimationStyles;
|
||||
export var AnimationStyles: typeof r.AnimationStyles = r.AnimationStyles;
|
||||
export type AnimationOutput = typeof _compiler_core_private_types.AnimationOutput;
|
||||
export var AnimationOutput: typeof r.AnimationOutput = r.AnimationOutput;
|
||||
export var ANY_STATE = r.ANY_STATE;
|
||||
export var DEFAULT_STATE = r.DEFAULT_STATE;
|
||||
export var EMPTY_STATE = r.EMPTY_STATE;
|
||||
export var FILL_STYLE_FLAG = r.FILL_STYLE_FLAG;
|
||||
export var prepareFinalAnimationStyles: typeof t.prepareFinalAnimationStyles =
|
||||
export var prepareFinalAnimationStyles: typeof r.prepareFinalAnimationStyles =
|
||||
r.prepareFinalAnimationStyles;
|
||||
export var balanceAnimationKeyframes: typeof t.balanceAnimationKeyframes =
|
||||
export var balanceAnimationKeyframes: typeof r.balanceAnimationKeyframes =
|
||||
r.balanceAnimationKeyframes;
|
||||
export var flattenStyles: typeof t.flattenStyles = r.flattenStyles;
|
||||
export var clearStyles: typeof t.clearStyles = r.clearStyles;
|
||||
export var flattenStyles: typeof r.flattenStyles = r.flattenStyles;
|
||||
export var clearStyles: typeof r.clearStyles = r.clearStyles;
|
||||
export var collectAndResolveStyles: typeof r.collectAndResolveStyles = r.collectAndResolveStyles;
|
||||
export var renderStyles: typeof t.renderStyles = r.renderStyles;
|
||||
export type ViewMetadata = t.ViewMetadata;
|
||||
export var ViewMetadata: typeof t.ViewMetadata = r.ViewMetadata;
|
||||
export var renderStyles: typeof r.renderStyles = r.renderStyles;
|
||||
export type ViewMetadata = typeof _compiler_core_private_types.ViewMetadata;
|
||||
export var ViewMetadata: typeof r.ViewMetadata = r.ViewMetadata;
|
||||
|
@ -6,10 +6,12 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {__core_private_testing__ as r, __core_private_testing_types__ as t} from '@angular/core/testing';
|
||||
import {__core_private_testing__ as r, __core_private_testing_types__ as types} from '@angular/core/testing';
|
||||
|
||||
export type TestingCompiler = t.TestingCompiler;
|
||||
export var TestingCompiler: typeof t.TestingCompiler = r.TestingCompiler;
|
||||
export declare let _compiler_core_testing_types: types;
|
||||
|
||||
export type TestingCompilerFactory = t.TestingCompilerFactory;
|
||||
export var TestingCompilerFactory: typeof t.TestingCompilerFactory = r.TestingCompilerFactory;
|
||||
export type TestingCompiler = typeof _compiler_core_testing_types.TestingCompiler;
|
||||
export var TestingCompiler: typeof r.TestingCompiler = r.TestingCompiler;
|
||||
|
||||
export type TestingCompilerFactory = typeof _compiler_core_testing_types.TestingCompilerFactory;
|
||||
export var TestingCompilerFactory: typeof r.TestingCompilerFactory = r.TestingCompilerFactory;
|
||||
|
Reference in New Issue
Block a user