A self hosted chat application with end-to-end encrypted messaging.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
544 B

  1. import { Model } from "../model/AbstractModel";
  2. import { View } from "../view/AbstractView";
  3. // simple restrictions that MVC impose: The Control has a reference to the View and Model + the View has a reference to the Model and the Controller.It also does not have any Observer implementation in the Model, so that the View can update based on it.
  4. // export abstract class Controller {
  5. // protected _model: Model | undefined;
  6. // protected _view: View | undefined;
  7. // }
  8. export interface Controller {
  9. model: Model,
  10. view: View
  11. }