UNPKG

scrabble-solver

Version:

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

11 lines (8 loc) 285 B
import { isObject } from './isObject'; export interface TileJson { character: string; isBlank: boolean; } export const isTileJson = (value: unknown): value is TileJson => { return isObject(value) && typeof value.character === 'string' && typeof value.isBlank === 'boolean'; };