parent
73af9f6e57
commit
431b88aa11
1 changed files with 2 additions and 2 deletions
@ -1,5 +1,5 @@ |
|||||||
function fetchJSON<T>(...args: [RequestInfo, RequestInit?]): Promise<T> { |
const fetchJSON = <T>(...args: [RequestInfo, RequestInit?]): Promise<T> => { |
||||||
return fetch(...args).then((response: Response) => response.json()); |
return fetch(...args).then((response: Response) => response.json()); |
||||||
} |
}; |
||||||
|
|
||||||
export default fetchJSON; |
export default fetchJSON; |
||||||
|
Loading…
Reference in new issue