Skip to content

Instantly share code, notes, and snippets.

@morintd
Created March 11, 2024 19:52
Show Gist options
  • Select an option

  • Save morintd/7ad03c9f530a28f85b113efa0f240547 to your computer and use it in GitHub Desktop.

Select an option

Save morintd/7ad03c9f530a28f85b113efa0f240547 to your computer and use it in GitHub Desktop.
import { IPresenter } from "../../common/presenter";
import { GameDomainModel } from "../game.domain-model";
export type Input = {
history: GameDomainModel.Squares[];
winner: GameDomainModel.Winner;
xIsNext: boolean;
step: number;
};
export type Output = {
moves: Array<{ move: number; description: string }>;
status: string;
squares: GameDomainModel.Squares;
};
export interface IGamePresenter extends IPresenter<Input, Output> {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment