title: I'm Getting no-unsafe-call and no-unsafe-assignment eslint error on imported function even though function is typed
body: <p>I'm getting no-unsafe-call and also no-unsafe-assignment eslint errors when importing a typed function. If the function is declared in the same file, the error goes away. It seems that eslint is not able to get the return type of the imported function.</p>
  <p>In useWorkspaceMessages.ts</p>
  <pre><code>export interface WorkspaceMessage {
    message: string;
    created: string;
  }
  
  export default function useWorkspaceMessages(): WorkspaceMessage[] {
    return [];
  }
  </code></pre>
  <p>In app.tsx</p>
  <pre><code>import useWorkspaceMessages, {
    WorkspaceMessage,
  } from 'useWorkspaceMessages';
  
  const workspaceMessages: WorkspaceMessage[] = useWorkspaceMessages();
       ^^^^^^^^^^^^^^^^^^^                      ^^^^^^^^^^^^^^^^^^^^
  error  Unsafe assignment of an any value  @typescript-eslint/no-unsafe-assignment
  error  Unsafe call of an any typed value  @typescript-eslint/no-unsafe-call
  </code></pre>
  <p>If I declare <code>useWorkspaceMessages</code> and the <code>WorkspaceMessage</code> interface in app.tsx the error goes away.</p>