File size: 546 Bytes
68d7816 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import { LifecycleScope } from '#/app/scopes';
import { ScopeActivation, registerScopedService } from '#/_base/di/scope';
import { StateRegistry } from '#/_base/state/stateRegistry';
import { IAppStateService } from './appState';
export class AppStateService extends StateRegistry implements IAppStateService {
declare readonly _serviceBrand: undefined;
protected override readonly inspectScope = 'app';
}
registerScopedService(
LifecycleScope.App,
IAppStateService,
AppStateService,
ScopeActivation.OnScopeCreated,
'state',
);
|