refactor(webworkers): move webworkers to separate @angular/platform-webworker and @angular/platform-webworker-dynamic packages
BREAKING CHANGE: web worker platform is now exported via separate packages. Please use @angular/platform-webworker and @angular/platform-webworker-dynamic
This commit is contained in:

committed by
Victor Berchet

parent
0f68351979
commit
71ae2c4525
126
tools/public_api_guard/platform-browser/index.d.ts
vendored
126
tools/public_api_guard/platform-browser/index.d.ts
vendored
@ -9,21 +9,6 @@ export declare class BrowserModule {
|
||||
constructor(parentModule: BrowserModule);
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class BrowserPlatformLocation extends PlatformLocation {
|
||||
hash: string;
|
||||
pathname: string;
|
||||
search: string;
|
||||
constructor();
|
||||
back(): void;
|
||||
forward(): void;
|
||||
getBaseHrefFromDOM(): string;
|
||||
onHashChange(fn: LocationChangeListener): void;
|
||||
onPopState(fn: LocationChangeListener): void;
|
||||
pushState(state: any, title: string, url: string): void;
|
||||
replaceState(state: any, title: string, url: string): void;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare class By {
|
||||
static all(): Predicate<DebugElement>;
|
||||
@ -31,16 +16,6 @@ export declare class By {
|
||||
static directive(type: Type<any>): Predicate<DebugElement>;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare abstract class ClientMessageBroker {
|
||||
abstract runOnService(args: UiArguments, returnType: Type<any>): Promise<any>;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare abstract class ClientMessageBrokerFactory {
|
||||
abstract createMessageBroker(channel: string, runInZone?: boolean): ClientMessageBroker;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare function disableDebugTools(): void;
|
||||
|
||||
@ -71,13 +46,6 @@ export declare class EventManager {
|
||||
getZone(): NgZone;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare class FnArg {
|
||||
type: Type<any>;
|
||||
value: any;
|
||||
constructor(value: any, type: Type<any>);
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare const HAMMER_GESTURE_CONFIG: OpaqueToken;
|
||||
|
||||
@ -90,28 +58,6 @@ export declare class HammerGestureConfig {
|
||||
buildHammer(element: HTMLElement): HammerInstance;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
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>;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export interface MessageBusSink {
|
||||
attachToZone(zone: NgZone): void;
|
||||
initChannel(channel: string, runInZone: boolean): void;
|
||||
to(channel: string): EventEmitter<any>;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export interface MessageBusSource {
|
||||
attachToZone(zone: NgZone): void;
|
||||
from(channel: string): EventEmitter<any>;
|
||||
initChannel(channel: string, runInZone: boolean): void;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare class NgProbeToken {
|
||||
constructor(name: string, token: any);
|
||||
@ -120,26 +66,6 @@ export declare class NgProbeToken {
|
||||
/** @stable */
|
||||
export declare const platformBrowser: (extraProviders?: Provider[]) => PlatformRef;
|
||||
|
||||
/** @experimental */
|
||||
export declare const platformWorkerApp: (extraProviders?: Provider[]) => PlatformRef;
|
||||
|
||||
/** @experimental */
|
||||
export declare const platformWorkerUi: (extraProviders?: Provider[]) => PlatformRef;
|
||||
|
||||
/** @experimental */
|
||||
export declare const PRIMITIVE: Type<any>;
|
||||
|
||||
/** @experimental */
|
||||
export declare class ReceivedMessage {
|
||||
args: any[];
|
||||
id: string;
|
||||
method: string;
|
||||
type: string;
|
||||
constructor(data: {
|
||||
[key: string]: any;
|
||||
});
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export interface SafeHtml extends SafeValue {
|
||||
}
|
||||
@ -160,60 +86,8 @@ export interface SafeStyle extends SafeValue {
|
||||
export interface SafeUrl extends SafeValue {
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare abstract class ServiceMessageBroker {
|
||||
abstract registerMethod(methodName: string, signature: Type<any>[], method: Function, returnType?: Type<any>): void;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare abstract class ServiceMessageBrokerFactory {
|
||||
abstract createMessageBroker(channel: string, runInZone?: boolean): ServiceMessageBroker;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare class Title {
|
||||
getTitle(): string;
|
||||
setTitle(newTitle: string): void;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare class UiArguments {
|
||||
args: FnArg[];
|
||||
method: string;
|
||||
constructor(method: string, args?: FnArg[]);
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare class WebWorkerInstance {
|
||||
bus: MessageBus;
|
||||
worker: Worker;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare const WORKER_APP_LOCATION_PROVIDERS: ({
|
||||
provide: typeof PlatformLocation;
|
||||
useClass: typeof WebWorkerPlatformLocation;
|
||||
} | {
|
||||
provide: any;
|
||||
useFactory: (platformLocation: WebWorkerPlatformLocation, zone: NgZone) => () => Promise<boolean>;
|
||||
multi: boolean;
|
||||
deps: (typeof PlatformLocation | typeof NgZone)[];
|
||||
})[];
|
||||
|
||||
/** @experimental */
|
||||
export declare const WORKER_SCRIPT: OpaqueToken;
|
||||
|
||||
/** @experimental */
|
||||
export declare const WORKER_UI_LOCATION_PROVIDERS: (typeof BrowserPlatformLocation | typeof MessageBasedPlatformLocation | {
|
||||
provide: any;
|
||||
useFactory: (injector: Injector) => () => void;
|
||||
multi: boolean;
|
||||
deps: typeof Injector[];
|
||||
})[];
|
||||
|
||||
/** @experimental */
|
||||
export declare const WORKER_UI_STARTABLE_MESSAGING_SERVICE: OpaqueToken;
|
||||
|
||||
/** @experimental */
|
||||
export declare class WorkerAppModule {
|
||||
}
|
||||
|
Reference in New Issue
Block a user