UNPKG

scrabble-solver

Version:

Scrabble Solver 2 - Free, open-source, cross-platform, multi-language analysis tool for Scrabble, Scrabble Duel, Super Scrabble, Letter League, Literaki, and Kelimelik. Quickly find the top-scoring words using the given board and tiles.

21 lines (17 loc) 438 B
import { Result } from '@scrabble-solver/types'; import { ResultColumnId, Sort, SortDirection } from 'types'; export interface ResultsState { candidate: Result | null; query: string; results: Result[] | undefined; sort: Sort; } export const resultsInitialState: ResultsState = { candidate: null, query: '', results: undefined, sort: { column: ResultColumnId.Points, direction: SortDirection.Descending, }, };