labyrinth-frontend/app/state/state.ts
Manuel Friedli 3efb87bcd8
All checks were successful
/ maven-build (push) Successful in 20s
Refactor
2026-03-07 23:47:38 +01:00

18 lines
393 B
TypeScript

import Coordinates from "../model/coordinates.ts";
import Maze from "../model/maze.ts";
export interface State {
errorMessage: string | null,
loading: boolean,
maze: Maze | null,
showSolution: boolean,
userPath: Coordinates[]
}
export const INITIAL_STATE: State = {
errorMessage: null,
loading: false,
maze: null,
showSolution: false,
userPath: []
};