standardize arrow functions, use implicit types where applicable

This commit is contained in:
marlon-erler
2026-04-13 10:51:09 +00:00
parent 681381f4ba
commit 8a5b54b03c
14 changed files with 29 additions and 33 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ import TaskViewModel from "./taskViewModel";
import { CommonKeys } from "../../View/keystrokes";
export default class BoardViewModel extends TaskContainingPageViewModel {
contextDebugDescription = "board";
contextDebugDescription: string = "board";
// state
name: React.State<string> = new React.State("");
@@ -11,7 +11,7 @@ import TaskViewModel from "./taskViewModel";
export default class TaskContainingPageViewModel extends Context {
// state
taskIndexManager: IndexManager<TaskViewModel> = new IndexManager(
taskIndexManager = new IndexManager<TaskViewModel>(
(taskViewModel: TaskViewModel) => taskViewModel.sortingString,
);
+2 -2
View File
@@ -11,10 +11,10 @@ import { IndexManager } from "../../Model/Utility/utility";
import { CommonKeys } from "../../View/keystrokes";
export default class TaskPageViewModel extends ContextHost<string> {
contextDebugDescription = "task-page";
contextDebugDescription: string = "task-page";
// data
boardIndexManager: IndexManager<BoardViewModel> = new IndexManager(
boardIndexManager = new IndexManager<BoardViewModel>(
(boardViewModel: BoardViewModel) => boardViewModel.name.value,
);