title: Define the type of error in function argument
body: <p>How do I define the type of <code>error</code> below?</p>
  
  <pre><code>async function falseThrow (promise: Promise&lt;any&gt;, error): any {
    let value: any = await promise
    if (!value) throw error
    return value
  }
  </code></pre>