title: The return type of an async function or method must be the global Promise<T> type
body: <p>I am using an anonymous function with async and the error occurred while compilation. I am calling this function inside a parent function as await.</p>
  
  <p>I have two functions:</p>
  
  <ol>
  <li>parent function</li>
  <li>child function</li>
  </ol>
  
  <p>in parent function, I am using async-await. and called second function (which is arrow function). if i write that function as <code>async function functionName (parameters) {}</code> it works, but i am using it as <code>export const functionName = async (params) =&gt; {}</code> and it gave me this error.</p>
  
  <pre><code>const a = await b(data);
  
  const b = async (data) =&gt; { return "success" }
  </code></pre>
  
  <p>i try to add <code>const functionName = async (params) Promise&lt;string&gt; =&gt; {}</code> but still same error.</p>
  
  <p>In parent function, I am calling child function as,</p>
  
  <p>how to avoid this error.</p>