standardize arrow functions, use implicit types where applicable
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user