This commit is contained in:
Maciej Caderek
2022-04-11 22:46:30 +02:00
parent 9fa3285297
commit 7beecd3c72
17 changed files with 870 additions and 127 deletions

View File

@@ -89,8 +89,6 @@ export type BoardConfig = {
showChecks: boolean;
showCoords: boolean;
showShadows: boolean;
sounds?: boolean;
speech?: boolean;
flipped: boolean;
};
@@ -103,6 +101,12 @@ export type GameConfig = {
animationSize: Size;
};
export type SiteConfig = {
darkMode: boolean;
sounds: boolean;
speech: boolean;
};
export type MaterialCount = {
w: {
p: number;
@@ -175,6 +179,7 @@ export type Handlers = {
downloadAnimation: () => Promise<void>;
toggleSound(): void;
toggleSpeech(): void;
toggleDarkMode(): void;
openOnLichess: () => Promise<boolean>;
};