fix(packages): use ES modules for primary build (#11120)

This commit is contained in:
Miško Hevery
2016-08-30 18:07:40 -07:00
committed by Victor Berchet
parent 8cb1046ce9
commit 979657989b
249 changed files with 1929 additions and 1463 deletions

View File

@ -363,7 +363,7 @@ export interface ContentChildrenMetadataFactory {
export declare function createPlatform(injector: Injector): PlatformRef;
/** @experimental */
export declare function createPlatformFactory(parentPlaformFactory: PlatformFactory, name: string, providers?: Provider[]): PlatformFactory;
export declare function createPlatformFactory(parentPlaformFactory: (extraProviders?: Provider[]) => PlatformRef, name: string, providers?: Provider[]): (extraProviders?: Provider[]) => PlatformRef;
/** @stable */
export declare const CUSTOM_ELEMENTS_SCHEMA: SchemaMetadata;
@ -888,7 +888,7 @@ export interface PipeTransform {
export declare const PLATFORM_INITIALIZER: any;
/** @experimental */
export declare const platformCore: (extraProviders?: (TypeProvider | ValueProvider | ClassProvider | ExistingProvider | FactoryProvider | any[])[]) => PlatformRef;
export declare const platformCore: (extraProviders?: Provider[]) => PlatformRef;
/** @stable */
export declare abstract class PlatformRef {

View File

@ -1,11 +1,11 @@
/** @experimental */
export declare function bootstrapWorkerUi(workerScriptUri: string, customProviders?: Provider[]): Promise<PlatformRef>;
/** @stable */
export declare const platformBrowserDynamic: (extraProviders?: (TypeProvider | ValueProvider | ClassProvider | ExistingProvider | FactoryProvider | any[])[]) => PlatformRef;
/** @experimental */
export declare const platformBrowserDynamic: (extraProviders?: Provider[]) => PlatformRef;
/** @experimental */
export declare const platformWorkerAppDynamic: (extraProviders?: (TypeProvider | ValueProvider | ClassProvider | ExistingProvider | FactoryProvider | any[])[]) => PlatformRef;
export declare const platformWorkerAppDynamic: (extraProviders?: Provider[]) => PlatformRef;
/** @experimental */
export declare const RESOURCE_CACHE_PROVIDER: Provider[];

View File

@ -3,4 +3,4 @@ export declare class BrowserDynamicTestingModule {
}
/** @stable */
export declare const platformBrowserDynamicTesting: (extraProviders?: (TypeProvider | ValueProvider | ClassProvider | ExistingProvider | FactoryProvider | any[])[]) => PlatformRef;
export declare const platformBrowserDynamicTesting: (extraProviders?: Provider[]) => PlatformRef;

View File

@ -118,13 +118,13 @@ export declare class NgProbeToken {
}
/** @stable */
export declare const platformBrowser: (extraProviders?: (TypeProvider | ValueProvider | ClassProvider | ExistingProvider | FactoryProvider | any[])[]) => PlatformRef;
export declare const platformBrowser: (extraProviders?: Provider[]) => PlatformRef;
/** @experimental */
export declare const platformWorkerApp: (extraProviders?: (TypeProvider | ValueProvider | ClassProvider | ExistingProvider | FactoryProvider | any[])[]) => PlatformRef;
export declare const platformWorkerApp: (extraProviders?: Provider[]) => PlatformRef;
/** @experimental */
export declare const platformWorkerUi: (extraProviders?: (TypeProvider | ValueProvider | ClassProvider | ExistingProvider | FactoryProvider | any[])[]) => PlatformRef;
export declare const platformWorkerUi: (extraProviders?: Provider[]) => PlatformRef;
/** @experimental */
export declare const PRIMITIVE: Type<any>;
@ -204,7 +204,7 @@ export declare const WORKER_APP_LOCATION_PROVIDERS: ({
export declare const WORKER_SCRIPT: OpaqueToken;
/** @experimental */
export declare const WORKER_UI_LOCATION_PROVIDERS: (typeof MessageBasedPlatformLocation | typeof BrowserPlatformLocation | {
export declare const WORKER_UI_LOCATION_PROVIDERS: (typeof BrowserPlatformLocation | typeof MessageBasedPlatformLocation | {
provide: any;
useFactory: (injector: Injector) => () => void;
multi: boolean;

View File

@ -1,6 +0,0 @@
/** @stable */
export declare class BrowserTestingModule {
}
/** @stable */
export declare const platformBrowserTesting: (extraProviders?: (TypeProvider | ValueProvider | ClassProvider | ExistingProvider | FactoryProvider | any[])[]) => PlatformRef;

View File

@ -0,0 +1,6 @@
/** @stable */
export declare class BrowserTestingModule {
}
/** @stable */
export declare const platformBrowserTesting: (extraProviders?: Provider[]) => PlatformRef;

View File

@ -1,8 +1,8 @@
/** @experimental */
export declare const platformDynamicServer: (extraProviders?: (TypeProvider | ValueProvider | ClassProvider | ExistingProvider | FactoryProvider | any[])[]) => PlatformRef;
export declare const platformDynamicServer: (extraProviders?: Provider[]) => PlatformRef;
/** @experimental */
export declare const platformServer: (extraProviders?: (TypeProvider | ValueProvider | ClassProvider | ExistingProvider | FactoryProvider | any[])[]) => PlatformRef;
export declare const platformServer: (extraProviders?: Provider[]) => PlatformRef;
/** @experimental */
export declare class ServerModule {

View File

@ -1,6 +0,0 @@
/** @experimental */
export declare const platformServerTesting: (extraProviders?: (TypeProvider | ValueProvider | ClassProvider | ExistingProvider | FactoryProvider | any[])[]) => PlatformRef;
/** @experimental */
export declare class ServerTestingModule {
}

View File

@ -0,0 +1,6 @@
/** @experimental */
export declare const platformServerTesting: (extraProviders?: Provider[]) => PlatformRef;
/** @experimental */
export declare class ServerTestingModule {
}

View File

@ -66,9 +66,6 @@ export declare class DefaultUrlSerializer implements UrlSerializer {
serialize(tree: UrlTree): string;
}
/** @stable */
export declare type ErrorHandler = (error: any) => any;
/** @stable */
export declare type Event = NavigationStart | NavigationEnd | NavigationCancel | NavigationError | RoutesRecognized;