feat : add lichess cloud eval
This commit is contained in:
18
src/types/lichess.ts
Normal file
18
src/types/lichess.ts
Normal 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",
|
||||
}
|
||||
Reference in New Issue
Block a user