UNPKG

@stardyn/angular-updater

Version:

Angular Version Tracker Package - Lightweight, configurable version tracking and update notification service for Angular applications with Service Worker support

39 lines (35 loc) 1.56 kB
import * as i0 from '@angular/core'; import { NgZone, Provider, EnvironmentProviders } from '@angular/core'; import { SwUpdate } from '@angular/service-worker'; import { ModuleConsoleService } from '@stardyn/angular-console'; import { ActionTheme, XConUIActionsService } from '@stardyn/angular-ui-actions'; interface XconVersionTrackerConfig { debugMode?: boolean; checkInterval?: number; theme: ActionTheme; } declare class XconVersionTrackerService { private actionsService; private swUpdate; private zone; private config; private versionCheckIntervalSeconds; private dconsole; constructor(actionsService: XConUIActionsService, swUpdate: SwUpdate, zone: NgZone, consoleService?: ModuleConsoleService); configure(config: XconVersionTrackerConfig): void; initialize(): void; static ɵfac: i0.ɵɵFactoryDeclaration<XconVersionTrackerService, [null, null, null, { optional: true; }]>; static ɵprov: i0.ɵɵInjectableDeclaration<XconVersionTrackerService>; } /** * Simple provider function for XconVersionTrackerService * @param config Version tracker configuration * @returns Angular Provider and EnvironmentProviders array */ declare function provideXconVersionTracker(config: XconVersionTrackerConfig): (Provider | EnvironmentProviders)[]; /** * Reset singleton instance (for testing or re-configuration) */ declare function resetVersionTrackerInstance(): void; export { XconVersionTrackerService, provideXconVersionTracker, resetVersionTrackerInstance }; export type { XconVersionTrackerConfig };