2019-05-23 15:39:20 -04:00
|
|
|
/** @deprecated */
|
perf: switch angular to use StaticInjector instead of ReflectiveInjector
This change allows ReflectiveInjector to be tree shaken resulting
in not needed Reflect polyfil and smaller bundles.
Code savings for HelloWorld using Closure:
Reflective: bundle.js: 105,864(34,190 gzip)
Static: bundle.js: 154,889(33,555 gzip)
645( 2%)
BREAKING CHANGE:
`platformXXXX()` no longer accepts providers which depend on reflection.
Specifically the method signature when from `Provider[]` to
`StaticProvider[]`.
Example:
Before:
```
[
MyClass,
{provide: ClassA, useClass: SubClassA}
]
```
After:
```
[
{provide: MyClass, deps: [Dep1,...]},
{provide: ClassA, useClass: SubClassA, deps: [Dep1,...]}
]
```
NOTE: This only applies to platform creation and providers for the JIT
compiler. It does not apply to `@Compotent` or `@NgModule` provides
declarations.
Benchpress note: Previously Benchpress also supported reflective
provides, which now require static providers.
DEPRECATION:
- `ReflectiveInjector` is now deprecated as it will be remove. Use
`Injector.create` as a replacement.
closes #18496
2017-08-03 15:33:29 -04:00
|
|
|
export declare function bootstrapWorkerUi(workerScriptUri: string, customProviders?: StaticProvider[]): Promise<PlatformRef>;
|
2016-08-30 14:15:25 -04:00
|
|
|
|
2019-05-23 15:39:20 -04:00
|
|
|
/** @deprecated */
|
2017-09-12 14:45:02 -04:00
|
|
|
export declare class ClientMessageBroker {
|
|
|
|
runOnService(args: UiArguments, returnType: Type<any> | SerializerTypes | null): Promise<any> | null;
|
2016-08-30 14:15:25 -04:00
|
|
|
}
|
|
|
|
|
2019-05-23 15:39:20 -04:00
|
|
|
/** @deprecated */
|
2017-09-12 14:45:02 -04:00
|
|
|
export declare class ClientMessageBrokerFactory {
|
|
|
|
createMessageBroker(channel: string, runInZone?: boolean): ClientMessageBroker;
|
2016-08-30 14:15:25 -04:00
|
|
|
}
|
|
|
|
|
2019-11-14 08:56:36 -05:00
|
|
|
/** @deprecated */
|
2016-08-30 14:15:25 -04:00
|
|
|
export declare class FnArg {
|
2017-02-17 01:36:21 -05:00
|
|
|
type: Type<any> | SerializerTypes;
|
2016-08-30 14:15:25 -04:00
|
|
|
value: any;
|
2017-02-17 01:36:21 -05:00
|
|
|
constructor(value: any, type?: Type<any> | SerializerTypes);
|
2016-08-30 14:15:25 -04:00
|
|
|
}
|
|
|
|
|
2019-05-23 15:39:20 -04:00
|
|
|
/** @deprecated */
|
2016-08-30 14:15:25 -04:00
|
|
|
export declare abstract class MessageBus implements MessageBusSource, MessageBusSink {
|
|
|
|
abstract attachToZone(zone: NgZone): void;
|
|
|
|
abstract from(channel: string): EventEmitter<any>;
|
|
|
|
abstract initChannel(channel: string, runInZone?: boolean): void;
|
|
|
|
abstract to(channel: string): EventEmitter<any>;
|
|
|
|
}
|
|
|
|
|
2019-11-14 08:56:36 -05:00
|
|
|
/** @deprecated */
|
2020-02-26 12:09:35 -05:00
|
|
|
export declare interface MessageBusSink {
|
2016-08-30 14:15:25 -04:00
|
|
|
attachToZone(zone: NgZone): void;
|
|
|
|
initChannel(channel: string, runInZone: boolean): void;
|
|
|
|
to(channel: string): EventEmitter<any>;
|
|
|
|
}
|
|
|
|
|
2019-11-14 08:56:36 -05:00
|
|
|
/** @deprecated */
|
2020-02-26 12:09:35 -05:00
|
|
|
export declare interface MessageBusSource {
|
2016-08-30 14:15:25 -04:00
|
|
|
attachToZone(zone: NgZone): void;
|
|
|
|
from(channel: string): EventEmitter<any>;
|
|
|
|
initChannel(channel: string, runInZone: boolean): void;
|
|
|
|
}
|
|
|
|
|
2019-05-23 15:39:20 -04:00
|
|
|
/** @deprecated */
|
perf: switch angular to use StaticInjector instead of ReflectiveInjector
This change allows ReflectiveInjector to be tree shaken resulting
in not needed Reflect polyfil and smaller bundles.
Code savings for HelloWorld using Closure:
Reflective: bundle.js: 105,864(34,190 gzip)
Static: bundle.js: 154,889(33,555 gzip)
645( 2%)
BREAKING CHANGE:
`platformXXXX()` no longer accepts providers which depend on reflection.
Specifically the method signature when from `Provider[]` to
`StaticProvider[]`.
Example:
Before:
```
[
MyClass,
{provide: ClassA, useClass: SubClassA}
]
```
After:
```
[
{provide: MyClass, deps: [Dep1,...]},
{provide: ClassA, useClass: SubClassA, deps: [Dep1,...]}
]
```
NOTE: This only applies to platform creation and providers for the JIT
compiler. It does not apply to `@Compotent` or `@NgModule` provides
declarations.
Benchpress note: Previously Benchpress also supported reflective
provides, which now require static providers.
DEPRECATION:
- `ReflectiveInjector` is now deprecated as it will be remove. Use
`Injector.create` as a replacement.
closes #18496
2017-08-03 15:33:29 -04:00
|
|
|
export declare const platformWorkerApp: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
|
2016-08-30 14:15:25 -04:00
|
|
|
|
2019-11-14 08:56:36 -05:00
|
|
|
/** @deprecated */
|
2019-11-09 14:00:53 -05:00
|
|
|
export declare const platformWorkerUi: (extraProviders?: StaticProvider[] | undefined) => import("@angular/core").PlatformRef;
|
2016-08-30 14:15:25 -04:00
|
|
|
|
2019-05-23 15:39:20 -04:00
|
|
|
/** @deprecated */
|
2020-02-26 12:09:35 -05:00
|
|
|
export declare interface ReceivedMessage {
|
2016-08-30 14:15:25 -04:00
|
|
|
args: any[];
|
|
|
|
id: string;
|
|
|
|
method: string;
|
|
|
|
type: string;
|
|
|
|
}
|
|
|
|
|
2019-05-23 15:39:20 -04:00
|
|
|
/** @deprecated */
|
2017-02-17 01:36:21 -05:00
|
|
|
export declare const enum SerializerTypes {
|
2017-03-07 19:36:12 -05:00
|
|
|
RENDERER_TYPE_2 = 0,
|
2017-02-19 03:23:45 -05:00
|
|
|
PRIMITIVE = 1,
|
2018-06-25 05:11:22 -04:00
|
|
|
RENDER_STORE_OBJECT = 2
|
2017-02-17 01:36:21 -05:00
|
|
|
}
|
|
|
|
|
2019-05-23 15:39:20 -04:00
|
|
|
/** @deprecated */
|
2017-09-12 14:45:02 -04:00
|
|
|
export declare class ServiceMessageBroker {
|
|
|
|
registerMethod(methodName: string, signature: Array<Type<any> | SerializerTypes> | null, method: (..._: any[]) => Promise<any> | void, returnType?: Type<any> | SerializerTypes): void;
|
2016-08-30 14:15:25 -04:00
|
|
|
}
|
|
|
|
|
2019-05-23 15:39:20 -04:00
|
|
|
/** @deprecated */
|
2017-09-12 14:45:02 -04:00
|
|
|
export declare class ServiceMessageBrokerFactory {
|
|
|
|
createMessageBroker(channel: string, runInZone?: boolean): ServiceMessageBroker;
|
2016-08-30 14:15:25 -04:00
|
|
|
}
|
|
|
|
|
2019-11-14 08:56:36 -05:00
|
|
|
/** @deprecated */
|
2016-08-30 14:15:25 -04:00
|
|
|
export declare class UiArguments {
|
2018-06-25 05:11:22 -04:00
|
|
|
args?: FnArg[] | undefined;
|
2016-08-30 14:15:25 -04:00
|
|
|
method: string;
|
2017-09-08 21:40:32 -04:00
|
|
|
constructor(method: string, args?: FnArg[] | undefined);
|
2016-08-30 14:15:25 -04:00
|
|
|
}
|
|
|
|
|
2019-05-23 15:39:20 -04:00
|
|
|
/** @deprecated */
|
2016-11-30 16:52:08 -05:00
|
|
|
export declare const VERSION: Version;
|
|
|
|
|
2019-05-23 15:39:20 -04:00
|
|
|
/** @deprecated */
|
2019-08-22 22:24:00 -04:00
|
|
|
export declare const WORKER_APP_LOCATION_PROVIDERS: StaticProvider[];
|
2016-08-30 14:15:25 -04:00
|
|
|
|
2019-05-23 15:39:20 -04:00
|
|
|
/** @deprecated */
|
perf: switch angular to use StaticInjector instead of ReflectiveInjector
This change allows ReflectiveInjector to be tree shaken resulting
in not needed Reflect polyfil and smaller bundles.
Code savings for HelloWorld using Closure:
Reflective: bundle.js: 105,864(34,190 gzip)
Static: bundle.js: 154,889(33,555 gzip)
645( 2%)
BREAKING CHANGE:
`platformXXXX()` no longer accepts providers which depend on reflection.
Specifically the method signature when from `Provider[]` to
`StaticProvider[]`.
Example:
Before:
```
[
MyClass,
{provide: ClassA, useClass: SubClassA}
]
```
After:
```
[
{provide: MyClass, deps: [Dep1,...]},
{provide: ClassA, useClass: SubClassA, deps: [Dep1,...]}
]
```
NOTE: This only applies to platform creation and providers for the JIT
compiler. It does not apply to `@Compotent` or `@NgModule` provides
declarations.
Benchpress note: Previously Benchpress also supported reflective
provides, which now require static providers.
DEPRECATION:
- `ReflectiveInjector` is now deprecated as it will be remove. Use
`Injector.create` as a replacement.
closes #18496
2017-08-03 15:33:29 -04:00
|
|
|
export declare const WORKER_UI_LOCATION_PROVIDERS: StaticProvider[];
|
2016-08-30 14:15:25 -04:00
|
|
|
|
2019-05-23 15:39:20 -04:00
|
|
|
/** @deprecated */
|
2016-08-30 14:15:25 -04:00
|
|
|
export declare class WorkerAppModule {
|
|
|
|
}
|