wordalle / frontend /src /types.ts
radames's picture
radames HF staff
add local storage keep track of played games
e61bf53
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;