import { AxiosResponse } from 'axios' ; import { makeRequest } from '../makeRequest' ; import { INewsApiResponse } from '../../types/redux/news-reducer-types' ; EXPORTS export { getLatestNews } ; api function returns { object } const getLatestNews = ( ) : Promise < AxiosResponse < INewsApiResponse > > => { return makeRequest ( { url : `${ process . env . NEWS_URL_QUERY }=${ process . env . NEWS_API_KEY }` , method : 'GET' , } ) ; } ;