fix: TypeScript-Fehler behoben (stockfish types, null-Typ)
This commit is contained in:
9
server/src/types/stockfish.d.ts
vendored
Normal file
9
server/src/types/stockfish.d.ts
vendored
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user