fix: TypeScript-Fehler behoben (stockfish types, null-Typ)

This commit is contained in:
Michess
2026-04-13 10:30:54 +02:00
parent 50464981c2
commit b79a442b0c
3 changed files with 14 additions and 3 deletions

9
server/src/types/stockfish.d.ts vendored Normal file
View File

@@ -0,0 +1,9 @@
declare module "stockfish" {
interface StockfishInstance {
postMessage(cmd: string): void;
onmessage: ((line: string | { data: string }) => void) | null;
terminate?: () => void;
}
function Stockfish(): StockfishInstance;
export default Stockfish;
}