fix : tsc down compiling

This commit is contained in:
GuillaumeSD
2025-05-18 23:41:21 +02:00
parent ae0b2735e4
commit cac16b2ace
3 changed files with 3 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ export const setGameHeaders = (
game.setHeader("Site", "Chesskit.org"); game.setHeader("Site", "Chesskit.org");
game.setHeader( game.setHeader(
"Date", "Date",
new Date().toISOString().split("T")[0].replaceAll("-", ".") new Date().toISOString().split("T")[0].replace(/-/g, ".")
); );
const { white, black, resigned } = params; const { white, black, resigned } = params;

View File

@@ -60,7 +60,7 @@ export const useCurrentPosition = (engine: UciEngine | null) => {
} }
if (!position.eval?.opening) { if (!position.eval?.opening) {
for (const move of boardHistory.toReversed()) { for (const move of boardHistory.slice().reverse()) {
const moveFen = move.after.split(" ")[0]; const moveFen = move.after.split(" ")[0];
const opening = openings.find((opening) => opening.fen === moveFen); const opening = openings.find((opening) => opening.fen === moveFen);
if (opening) { if (opening) {

View File

@@ -1,7 +1,7 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "ES2017", "target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"], "lib": ["dom"],
"allowJs": false, "allowJs": false,
"skipLibCheck": true, "skipLibCheck": true,
"strict": true, "strict": true,