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