title: REACT Typescript fetch/ axios error - following properties from type 'Address[]': length, pop, push, concat, and 28 more. TS2740
body: <pre><code>import {Address} from './address.model';
  export const get = async ():Promise&lt;Address[]&gt;    =&gt;  {  
    
    return await fetch(`${apiUrl}`)
    .then(response =&gt; {
      if (!response.ok) {
        throw new Error(response.statusText)
      }
      return   response.json() as Promise&lt;Address[]&gt;;
    })
  
  //--------------caling from
   React.useEffect(() =&gt; {
      let newArr: Address[] = get()  ;
       setEntities(newArr);
    } , [])
  </code></pre>
  <p>//-------------throws following error:
  Type 'Promise&lt;Address[]&gt;' is missing the following properties from type 'Address[]': length, pop, push, concat, and 28 more.  TS2740</p>