feat : add lichess cloud eval

This commit is contained in:
GuillaumeSD
2024-03-02 02:27:47 +01:00
parent d6ad5a198d
commit 9d11b0006e
41 changed files with 92 additions and 204 deletions

18
src/types/lichess.ts Normal file
View File

@@ -0,0 +1,18 @@
export interface LichessErrorBody {
error: string | LichessError;
}
export interface LichessEvalBody {
depth: number;
pvs: {
moves: string;
cp?: number;
mate?: number;
}[];
}
export type LichessResponse<T> = T | LichessErrorBody;
export enum LichessError {
NotFound = "Not found",
}