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:
vikerman
2016-08-23 16:18:11 -07:00
committed by Kara
parent 05bbb8efcf
commit 5c93a8800a
13 changed files with 235 additions and 254 deletions

View File

@ -6,8 +6,8 @@
* 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__ as r} from '@angular/core';
export var ReflectionCapabilities: typeof t.ReflectionCapabilities = r.ReflectionCapabilities;
export var reflector: typeof t.reflector = r.reflector;
export var Console: typeof t.Console = r.Console;
export var ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
export var reflector: typeof r.reflector = r.reflector;
export var Console: typeof r.Console = r.Console;

View File

@ -6,8 +6,8 @@
* found in the LICENSE file at https://angular.io/license
*/
import {__platform_browser_private__ as r, __platform_browser_private__ as t} from '@angular/platform-browser';
import {__platform_browser_private__ as r} from '@angular/platform-browser';
export var INTERNAL_BROWSER_PLATFORM_PROVIDERS: typeof t.INTERNAL_BROWSER_PLATFORM_PROVIDERS =
export var INTERNAL_BROWSER_PLATFORM_PROVIDERS: typeof r.INTERNAL_BROWSER_PLATFORM_PROVIDERS =
r.INTERNAL_BROWSER_PLATFORM_PROVIDERS;
export var getDOM: typeof t.getDOM = r.getDOM;
export var getDOM: typeof r.getDOM = r.getDOM;

View File

@ -8,9 +8,8 @@
import * as testing from './testing/dom_test_component_renderer';
export declare namespace __platform_browser_dynamic_private_types__ {
export type DOMTestComponentRenderer = testing.DOMTestComponentRenderer;
export var DOMTestComponentRenderer: typeof testing.DOMTestComponentRenderer;
export interface __platform_browser_dynamic_private_types__ {
DOMTestComponentRenderer: testing.DOMTestComponentRenderer;
}
export var __platform_browser_dynamic_private__ = {