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,9 +6,9 @@
* 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 reflector: typeof t.reflector = r.reflector;
export var ReflectionCapabilities: typeof t.ReflectionCapabilities = r.ReflectionCapabilities;
export var wtfInit: typeof t.wtfInit = r.wtfInit;
export var Console: typeof t.Console = r.Console;
export var reflector: typeof r.reflector = r.reflector;
export var ReflectionCapabilities: typeof r.ReflectionCapabilities = r.ReflectionCapabilities;
export var wtfInit: typeof r.wtfInit = r.wtfInit;
export var Console: typeof r.Console = r.Console;