WIP
This commit is contained in:
18
src/types.ts
18
src/types.ts
@@ -1,6 +1,6 @@
|
||||
import { Move } from "chess.js";
|
||||
import stylesBoard from "./board/styles-board";
|
||||
import stylesPieces from "./board/styles-pieces";
|
||||
import { PiecesStyle } from "./board/styles-pieces/piecesStyles";
|
||||
|
||||
export type GradientDir =
|
||||
| "horizontal"
|
||||
@@ -75,24 +75,8 @@ export type BoardData = ({
|
||||
color: PieceColor;
|
||||
} | null)[][];
|
||||
|
||||
export type Piece =
|
||||
| "kw"
|
||||
| "qw"
|
||||
| "rw"
|
||||
| "bw"
|
||||
| "nw"
|
||||
| "pw"
|
||||
| "kb"
|
||||
| "qb"
|
||||
| "rb"
|
||||
| "bb"
|
||||
| "nb"
|
||||
| "pb";
|
||||
|
||||
export type BoardStyle = keyof typeof stylesBoard;
|
||||
|
||||
export type PiecesStyle = keyof typeof stylesPieces;
|
||||
|
||||
export type BoardConfig = {
|
||||
size: number;
|
||||
tiles: number;
|
||||
|
||||
Reference in New Issue
Block a user