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.
18 lines (17 loc) • 620 B
TypeScript
import { type WordDefinitionJson } from './WordDefinitionJson';
export declare class WordDefinition {
static fromJson: (json: WordDefinitionJson | null) => WordDefinition;
static readonly Null: WordDefinition;
readonly definitions: string[];
/**
* Does the word have an entry in a corresponding online dictionary?
*/
readonly exists: boolean;
/**
* Can the word be legally used in the game?
*/
readonly isAllowed: boolean;
readonly word: string;
constructor({ definitions, exists, isAllowed, word }: WordDefinitionJson);
toJson(): WordDefinitionJson | null;
}