standardize arrow functions, use implicit types where applicable
This commit is contained in:
@@ -14,7 +14,7 @@ export default class ChatListViewModel {
|
||||
notificationViewModel: NotificationViewModel;
|
||||
|
||||
// data
|
||||
chatIndexManager: IndexManager<ChatViewModel> = new IndexManager(
|
||||
chatIndexManager = new IndexManager<ChatViewModel>(
|
||||
(chatViewModel: ChatViewModel) =>
|
||||
chatViewModel.settingsPageViewModel.primaryChannel.value,
|
||||
);
|
||||
|
||||
@@ -13,7 +13,7 @@ import CoreViewModel, { Context } from "./coreViewModel";
|
||||
import { CommonKeys } from "../../View/keystrokes";
|
||||
|
||||
export default class FileTransferViewModel extends Context {
|
||||
contextDebugDescription = "transfer";
|
||||
contextDebugDescription: string = "transfer";
|
||||
|
||||
// state
|
||||
presentedModal: React.State<FileTransferModals | undefined> =
|
||||
|
||||
@@ -5,7 +5,7 @@ import { Languages, ThemeSettings } from "../../Model/Global/settingsModel";
|
||||
import { CommonKeys } from "../../View/keystrokes";
|
||||
|
||||
export default class SettingsViewModel extends Context {
|
||||
contextDebugDescription = "settings";
|
||||
contextDebugDescription: string = "settings";
|
||||
|
||||
// state
|
||||
username: React.State<string> = new React.State("");
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ export default class TaskPropertyBulkChangeViewModel {
|
||||
});
|
||||
};
|
||||
|
||||
setValue: (newValue: string, taskViewModel: TaskViewModel) => void;
|
||||
setValue: (newValue: string, taskViewModel: TaskViewModel) => void = () => {};
|
||||
|
||||
// init
|
||||
constructor(
|
||||
|
||||
Reference in New Issue
Block a user