I was trying to use ENS lookup in my React app using TypeScript and came across the following in useMoralisWeb3Api.d.ts on line 784:
resolveAddress: () => Promise<{
name: string;
}>;
It should be like this:
resolveAddress: (options: {address:string}) => Promise<{
name: string;
}>;
Otherwise TypeScript complains that it expects 0 arguments. Making the above edit to useMoralisWeb3Api.d.ts fixed the problem.