mirror of
https://github.com/TheRealOwenRees/chess-scribe-website.git
synced 2026-07-23 01:46:57 +00:00
export interfaces
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
import type { infer } from "zod";
|
||||
import type { TokenResponseSchema } from "#/schemas.ts";
|
||||
|
||||
export interface IPosition {
|
||||
ply: number;
|
||||
fen: string;
|
||||
@@ -29,3 +32,18 @@ export interface IGameState {
|
||||
diagrams: IPosition[];
|
||||
diagramClock: boolean;
|
||||
}
|
||||
|
||||
export interface ITokenData extends infer<typeof TokenResponseSchema> {}
|
||||
|
||||
export interface IUserStudy {
|
||||
id: string;
|
||||
name: string;
|
||||
createdAt: number;
|
||||
updatedAt: number;
|
||||
}
|
||||
|
||||
export interface IUserStudyChapter {
|
||||
chapterId: string;
|
||||
name: string;
|
||||
pgn: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user