painel / frontend /src /types.ts
Atualli's picture
Duplicate from huggingface-projects/wordalle
1bc8781
raw
history blame
518 Bytes
export const enum LetterState {
INITIAL = '',
CORRECT = 'correct',
PRESENT = 'present',
ABSENT = 'absent'
}
export const enum GameState {
LOADING,
PLAYING,
SUCESS,
FAIL,
COMPLETED
}
export interface Tile {
letter: string;
state: LetterState;
correct: string;
}
export type Board = Tile[][];
export interface PromptsData {
[key: string]: string[];
}
export interface BadgeComponent {
[key: number]: string;
}
export interface SuccessPrompt {
prompt: string;
idx: number;
}
export type User = string;