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.

14 lines (11 loc) 309 B
import { fetch } from './fetch'; export const fetchJson = async <T>(input: RequestInfo | URL, init?: RequestInit): Promise<T> => { const response = await fetch(input, { ...init, headers: { 'Content-Type': 'application/json', ...init?.headers, }, }); return response.json(); };