docs: update service-worker to use `@publicApi` tags (#26595)
PR Close #26595
This commit is contained in:
parent
13143b850e
commit
00c7db02d1
|
@ -1,4 +1,3 @@
|
||||||
/** @experimental */
|
|
||||||
export interface AssetGroup {
|
export interface AssetGroup {
|
||||||
installMode?: 'prefetch' | 'lazy';
|
installMode?: 'prefetch' | 'lazy';
|
||||||
name: string;
|
name: string;
|
||||||
|
@ -10,7 +9,6 @@ export interface AssetGroup {
|
||||||
updateMode?: 'prefetch' | 'lazy';
|
updateMode?: 'prefetch' | 'lazy';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @experimental */
|
|
||||||
export interface Config {
|
export interface Config {
|
||||||
appData?: {};
|
appData?: {};
|
||||||
assetGroups?: AssetGroup[];
|
assetGroups?: AssetGroup[];
|
||||||
|
@ -19,7 +17,6 @@ export interface Config {
|
||||||
navigationUrls?: string[];
|
navigationUrls?: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @experimental */
|
|
||||||
export interface DataGroup {
|
export interface DataGroup {
|
||||||
cacheConfig: {
|
cacheConfig: {
|
||||||
maxSize: number;
|
maxSize: number;
|
||||||
|
@ -32,10 +29,8 @@ export interface DataGroup {
|
||||||
version?: number;
|
version?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @experimental */
|
|
||||||
export declare type Duration = string;
|
export declare type Duration = string;
|
||||||
|
|
||||||
/** @experimental */
|
|
||||||
export interface Filesystem {
|
export interface Filesystem {
|
||||||
hash(file: string): Promise<string>;
|
hash(file: string): Promise<string>;
|
||||||
list(dir: string): Promise<string[]>;
|
list(dir: string): Promise<string[]>;
|
||||||
|
@ -43,12 +38,10 @@ export interface Filesystem {
|
||||||
write(file: string, contents: string): Promise<void>;
|
write(file: string, contents: string): Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @experimental */
|
|
||||||
export declare class Generator {
|
export declare class Generator {
|
||||||
readonly fs: Filesystem;
|
readonly fs: Filesystem;
|
||||||
constructor(fs: Filesystem, baseHref: string);
|
constructor(fs: Filesystem, baseHref: string);
|
||||||
process(config: Config): Promise<Object>;
|
process(config: Config): Promise<Object>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @experimental */
|
|
||||||
export declare type Glob = string;
|
export declare type Glob = string;
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/** @experimental */
|
|
||||||
export declare class ServiceWorkerModule {
|
export declare class ServiceWorkerModule {
|
||||||
static register(script: string, opts?: {
|
static register(script: string, opts?: {
|
||||||
scope?: string;
|
scope?: string;
|
||||||
|
@ -6,7 +5,6 @@ export declare class ServiceWorkerModule {
|
||||||
}): ModuleWithProviders<ServiceWorkerModule>;
|
}): ModuleWithProviders<ServiceWorkerModule>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @experimental */
|
|
||||||
export declare class SwPush {
|
export declare class SwPush {
|
||||||
readonly isEnabled: boolean;
|
readonly isEnabled: boolean;
|
||||||
readonly messages: Observable<object>;
|
readonly messages: Observable<object>;
|
||||||
|
@ -18,7 +16,6 @@ export declare class SwPush {
|
||||||
unsubscribe(): Promise<void>;
|
unsubscribe(): Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @experimental */
|
|
||||||
export declare class SwUpdate {
|
export declare class SwUpdate {
|
||||||
readonly activated: Observable<UpdateActivatedEvent>;
|
readonly activated: Observable<UpdateActivatedEvent>;
|
||||||
readonly available: Observable<UpdateAvailableEvent>;
|
readonly available: Observable<UpdateAvailableEvent>;
|
||||||
|
@ -28,7 +25,6 @@ export declare class SwUpdate {
|
||||||
checkForUpdate(): Promise<void>;
|
checkForUpdate(): Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @experimental */
|
|
||||||
export interface UpdateActivatedEvent {
|
export interface UpdateActivatedEvent {
|
||||||
current: {
|
current: {
|
||||||
hash: string;
|
hash: string;
|
||||||
|
@ -41,7 +37,6 @@ export interface UpdateActivatedEvent {
|
||||||
type: 'UPDATE_ACTIVATED';
|
type: 'UPDATE_ACTIVATED';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @experimental */
|
|
||||||
export interface UpdateAvailableEvent {
|
export interface UpdateAvailableEvent {
|
||||||
available: {
|
available: {
|
||||||
hash: string;
|
hash: string;
|
||||||
|
|
Loading…
Reference in New Issue