Merge pull request #1 from speedy-tuner/logs

Add logs
This commit is contained in:
Piotr Rogowski 2021-09-27 21:00:21 +02:00 committed by GitHub
commit b77e48bcdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,4 @@
export * from './types/config';
export * from './types/logs';
export * from './types/state';
export * from './types/tune';

5
src/types/logs.ts Normal file
View File

@ -0,0 +1,5 @@
export interface LogEntry {
[id: string]: number | string,
}
export type Logs = LogEntry[];

View File

@ -1,3 +1,4 @@
import { Logs } from './logs';
import { Config } from './config';
import { Tune } from './tune';
@ -5,6 +6,8 @@ export interface ConfigState extends Config {}
export interface TuneState extends Tune {}
export interface LogsState extends Logs {}
export interface UIState {
sidebarCollapsed: boolean;
}
@ -16,6 +19,7 @@ export interface StatusState {
export interface AppState {
tune: TuneState;
config: ConfigState;
logs: LogsState,
ui: UIState;
status: StatusState;
}