UNPKG

scrabble-cheater

Version:
21 lines (20 loc) 539 B
export interface Options { letters?: string; maximum?: number; quietMode?: boolean; singleMode?: boolean; } export declare class ScrabbleCheater { private dictionary; private readonly options; private readonly wordListPath; constructor(wordListPath: string, options?: Options); setLetters(letters: string): ScrabbleCheater; start(): Promise<string[]>; private findMatches; private formatLetters; private loadWords; private log; private readLineAsync; private singleOutput; }