Initial commit
This commit is contained in:
21
src/application/State/IApplicationState.ts
Normal file
21
src/application/State/IApplicationState.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { IUserFilter } from './Filter/IUserFilter';
|
||||
import { IUserSelection } from './Selection/IUserSelection';
|
||||
import { ISignal } from '@/infrastructure/Events/ISignal';
|
||||
import { ICategory, IScript } from '@/domain/ICategory';
|
||||
import { IApplicationCode } from './Code/IApplicationCode';
|
||||
export { IUserSelection, IApplicationCode, IUserFilter };
|
||||
|
||||
export interface IApplicationState {
|
||||
/** Event that fires when the application states changes with new application state as parameter */
|
||||
readonly code: IApplicationCode;
|
||||
readonly filter: IUserFilter;
|
||||
readonly stateChanged: ISignal<IApplicationState>;
|
||||
readonly categories: ReadonlyArray<ICategory>;
|
||||
readonly appName: string;
|
||||
readonly appVersion: number;
|
||||
readonly appTotalScripts: number;
|
||||
readonly selection: IUserSelection;
|
||||
readonly defaultScripts: ReadonlyArray<IScript>;
|
||||
getCategory(categoryId: number): ICategory | undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user