@lichess-org/stockfish-web 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/stockfishWeb.d.ts +3 -3
package/package.json
CHANGED
package/stockfishWeb.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
declare module
|
|
1
|
+
declare module "@lichess-org/stockfish-web" {
|
|
2
2
|
interface StockfishWeb {
|
|
3
3
|
uci(command: string): void; // send uci command, receive async response via listen
|
|
4
4
|
|
|
5
|
-
listen: (data: string) => void; // attach listener here
|
|
6
|
-
|
|
7
5
|
// index arguments are used for dual net sf builds, 0 for big, 1 for small, otherwise ignore
|
|
8
6
|
|
|
9
7
|
setNnueBuffer(data: Uint8Array, index?: number): void; // load nnue as buffer
|
|
10
8
|
|
|
11
9
|
getRecommendedNnue(index?: number): string; // returns a bare filename
|
|
12
10
|
|
|
11
|
+
listen: (data: string) => void; // attach listener here
|
|
12
|
+
|
|
13
13
|
onError: (msg: string) => void; // attach error handler here
|
|
14
14
|
}
|
|
15
15
|
export default StockfishWeb;
|