const fetchJSON = (...args: [RequestInfo, RequestInit?]): Promise => fetch(...args).then((response: Response) => response.json()); export default fetchJSON;