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 { | ||||
|     installMode?: 'prefetch' | 'lazy'; | ||||
|     name: string; | ||||
| @ -10,7 +9,6 @@ export interface AssetGroup { | ||||
|     updateMode?: 'prefetch' | 'lazy'; | ||||
| } | ||||
| 
 | ||||
| /** @experimental */ | ||||
| export interface Config { | ||||
|     appData?: {}; | ||||
|     assetGroups?: AssetGroup[]; | ||||
| @ -19,7 +17,6 @@ export interface Config { | ||||
|     navigationUrls?: string[]; | ||||
| } | ||||
| 
 | ||||
| /** @experimental */ | ||||
| export interface DataGroup { | ||||
|     cacheConfig: { | ||||
|         maxSize: number; | ||||
| @ -32,10 +29,8 @@ export interface DataGroup { | ||||
|     version?: number; | ||||
| } | ||||
| 
 | ||||
| /** @experimental */ | ||||
| export declare type Duration = string; | ||||
| 
 | ||||
| /** @experimental */ | ||||
| export interface Filesystem { | ||||
|     hash(file: string): Promise<string>; | ||||
|     list(dir: string): Promise<string[]>; | ||||
| @ -43,12 +38,10 @@ export interface Filesystem { | ||||
|     write(file: string, contents: string): Promise<void>; | ||||
| } | ||||
| 
 | ||||
| /** @experimental */ | ||||
| export declare class Generator { | ||||
|     readonly fs: Filesystem; | ||||
|     constructor(fs: Filesystem, baseHref: string); | ||||
|     process(config: Config): Promise<Object>; | ||||
| } | ||||
| 
 | ||||
| /** @experimental */ | ||||
| export declare type Glob = string; | ||||
|  | ||||
| @ -1,4 +1,3 @@ | ||||
| /** @experimental */ | ||||
| export declare class ServiceWorkerModule { | ||||
|     static register(script: string, opts?: { | ||||
|         scope?: string; | ||||
| @ -6,7 +5,6 @@ export declare class ServiceWorkerModule { | ||||
|     }): ModuleWithProviders<ServiceWorkerModule>; | ||||
| } | ||||
| 
 | ||||
| /** @experimental */ | ||||
| export declare class SwPush { | ||||
|     readonly isEnabled: boolean; | ||||
|     readonly messages: Observable<object>; | ||||
| @ -18,7 +16,6 @@ export declare class SwPush { | ||||
|     unsubscribe(): Promise<void>; | ||||
| } | ||||
| 
 | ||||
| /** @experimental */ | ||||
| export declare class SwUpdate { | ||||
|     readonly activated: Observable<UpdateActivatedEvent>; | ||||
|     readonly available: Observable<UpdateAvailableEvent>; | ||||
| @ -28,7 +25,6 @@ export declare class SwUpdate { | ||||
|     checkForUpdate(): Promise<void>; | ||||
| } | ||||
| 
 | ||||
| /** @experimental */ | ||||
| export interface UpdateActivatedEvent { | ||||
|     current: { | ||||
|         hash: string; | ||||
| @ -41,7 +37,6 @@ export interface UpdateActivatedEvent { | ||||
|     type: 'UPDATE_ACTIVATED'; | ||||
| } | ||||
| 
 | ||||
| /** @experimental */ | ||||
| export interface UpdateAvailableEvent { | ||||
|     available: { | ||||
|         hash: string; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user